• I have been using this plugin for a few weeks and I noticed that there are a couple of issues when jquery is defered and there are blocks of code (NOT inline but on external scripts which depend on jQuery.js) like

    jQuery( document ).on( 'ready', function() {...

    Those are not executed and don’t even throw a javascript error in the console! – I was surprised by the last one.

    However something like this below works perfectly fine

    document.addEventListener('DOMContentLoaded', function() {
    	...
    }, false);

    Is there any way to handle this behavior without making render blocking the jquery.js?

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

    (@optimizingmatters)

    I honestly have no idea I’m afraid Drazon, sorry … Maybe jQuery wizards could help you out here, on StackOverflow.com or something along those lines?

Viewing 1 replies (of 1 total)
  • The topic ‘Defer and jQuery( document ).on( ‘ready’, function() {…’ is closed to new replies.