• Resolved colemana

    (@colemana)


    Howdy,

    I am having issues defer parsing of javascript

    Please check out the attached report.

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

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

    (@optimizingmatters)

    well, the defer-attributes are there in your HTML source and a retest on gtmetrix shows a slightly better result, but you still have some blocking JS from e.g. your youtube video and some of the jetpack stuff you have activated. for the youtube video you could try wp youtube lyte (I’m the developer of that plugin as well)?

    frank

    Thread Starter colemana

    (@colemana)

    Cool, I will try it out. Thank you.

    Hi Frank,

    I have installed both Autoptimize and Async plugins for wordpress and Im still getting render blocking by the following js according to Pagespeed insights: https://spanskafastighetsfonden.com/wp-content/cache/wpfc-minified/q9kqzger/dctcp.js. Do I need to insert the filename in the “Scripts to defer” field or does the plugin do it by it self?

    Daniel

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, disable WPFC’s minification (it’s … risky to run 2 different minifications simultaneously) and you’ll see it’s js/jquery/jquery.js, which is excluded by default by AO (and that file is already minified, so no need to have WPFC re-minify it).

    what you can try next is either remove js/jquery/jquery.js from the list of AO JS optimization exclusions OR experiment with “async js”‘s settings to either async or defer jquery. make sure to always test thoroughly, because there might be inline JS (from your theme or from plugins) that require jQuery to be available early.

    frank

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Defer parsing of JavaScript’ is closed to new replies.