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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

attheshow’s picture

Plazik’s picture

Status: Needs review » Fixed

@attheshow thank you for patch, statistics blocks are on Views now and this issue has been fixed in #2488754: OAuth & Charts, Integration.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.