jQuery deferred not working with Post module

I load jQuery deferred which works with most of my pages, but the post module creates errors. Any way around that?

If the module relies on jquery and you are forcing it into the footer and deferring it for extra points then no not really any way around it. The post grid JS will be loaded in the layout JS file so you need to make sure that is loaded AFTER jquery so it is available.

1 Like

I was using WP Rocket to defer JS but I needed to exempt jQuery.

After hunting around, I found another plugin, Async JavaScript that does a better job of deferring jQuery and is compatible with WP Rocket.

Thanks, Richard

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.