Making WordPress.org

Opened 8 years ago

Closed 7 years ago

#2074 closed defect (bug) (fixed)

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

Reported by: westonruter's profile westonruter Owned by: obenland's profile 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 8 years ago.
meta-2074.patch (1.3 KB) - added by SergeyBiryukov 8 years ago.

Download all attachments as: .zip

Change History (4)

#1 @SergeyBiryukov
8 years 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
7 years 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.