• Hello again Frank.
    Thanks so much for another awesome plugin.
    I think Google analytics.js is one of my biggest render-blocking problems, if i’m not totally mistaken (which is quite possible).
    I don’t have a lot of confidence analyzing my page source with Devtools, but it looks like i don’t have a lot of JS being deferred (this is the setting i’ve chosen in AsyncJS). I’ve excluded jquery and a couple of others (did some experimentation already), but i’d like to defer some of the myriad of js scripts i have loading for my theme and monsterinsights, wp-spamshield etc. Some of these are being aggregated by AO. Not sure if that means they can’t be deferred…? I read in another support ticket that the JS that is not referenced directly in the HTML, cannot be deferred.
    Could you let me know if i’m understanding this correctly? And if it’s possible to defer analytics.js.
    Thanks!
    David

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    * If JS is aggregated by AO (and if JS is not ‘forced in head’) then it is deferred automatically.
    * JS that is not referenced in the HTML directly indeed cannot be acted upon by AsyncJS, this is also the case for inline JS by the way
    * GA is added as inline JS through the MonsterInsights plugin and the actual request to Google is async. Maybe check with MonsterInsights if that can be switched to defer (given defer executes later then async, you probably will lose some fast-clicking or -leaving visitors that way)?

    hope this helps,
    frank

Viewing 1 replies (of 1 total)
  • The topic ‘Defer analytics.js?’ is closed to new replies.