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.
I noticed that the module was adding its JS and CSS files to the site even if none of the reporting blocks were in use on the page currently being viewed. The attached patch creates a minified version of the JS file and attaches them (the CSS & JS files) to the blocks such that they only get loaded when necessary. The patch is against 7.x-1.3.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2158715-google_analytics_reports-7.x-1.3-minified-js-and-css-when-needed.patch | 3.1 KB | attheshow |
Comments
Comment #1
attheshow CreditAttribution: attheshow commentedComment #2
Plazik CreditAttribution: Plazik as a volunteer commented@attheshow thank you for patch, statistics blocks are on Views now and this issue has been fixed in #2488754: OAuth & Charts, Integration.