Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The upcoming Resource Hints specification can be used to speedup the loading of the GA script when the script is not locally cached. The specifications are not fully supported, see: http://caniuse.com/#search=preload%7Cprefetch
I'll attach a patch that adds an extra configuration item: "Use resource hints to improve performance".
The patch is missing tests.
Comment | File | Size | Author |
---|---|---|---|
#2 | google_analytics-add_resource_hints-2860809-2.patch | 4.64 KB | SchnWalter |
Comments
Comment #2
SchnWalter CreditAttribution: SchnWalter as a volunteer and commentedComment #3
hass CreditAttribution: hass commentedCan you share Google documentation that this is needed? I'm not aware of any and I think it is not needed and is not noted in the integration reference.
Comment #4
hass CreditAttribution: hass commentedComment #5
hass CreditAttribution: hass commentedNo feedback.