Opened 8 years ago

Closed 6 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


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

#2 @obenland
6 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.