WordPress.org

Making WordPress.org

Opened 22 months ago

Closed 6 months ago

#2074 closed defect (fixed)

Google Analytics in Core Trac uses non-async script, may get blocked in mobile Chrome

Reported by: westonruter Owned by: obenland
Milestone: Priority: normal
Component: Trac Keywords: has-patch commit
Cc:

Description

An old Google Analytics snippet is being used which employs a blocking script. Not only does this slow down page load time, but Chrome will also start blocking these from being loaded on slow connections.

This will eventually be invalidated by #1017.

Attachments (2)

blocking-script.png (200.1 KB) - added by westonruter 22 months ago.
meta-2074.patch (1.3 KB) - added by SergeyBiryukov 22 months ago.

Download all attachments as: .zip

Change History (4)

#1 @SergeyBiryukov
22 months ago

  • Keywords has-patch commit added; needs-patch removed

meta-2074.patch replaces the old tracking script with the current asynchronous code from https://developers.google.com/analytics/devguides/collection/analyticsjs/.

#2 @obenland
6 months ago

  • Owner set to obenland
  • Resolution set to fixed
  • Status changed from new to closed

In 6466:

Trac: Update Google Analytics snippet.

Props SergeyBiryukov, westonruter.
Fixes #2074.

Note: See TracTickets for help on using tickets.