WordPress.org

Making WordPress.org

Opened 15 months ago

Last modified 15 months ago

#2074 new defect

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

Reported by: westonruter Owned by:
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 15 months ago.
meta-2074.patch (1.3 KB) - added by SergeyBiryukov 15 months ago.

Download all attachments as: .zip

Change History (3)

#1 @SergeyBiryukov
15 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/.

Note: See TracTickets for help on using tickets.