Defer Render-blocking JavaScript also blocks jQuery for WooCommerce
-
Hello,
I recently experienced an issue with this plugin on a site using WooCommerce, WooCommerce Bookings and WooCommerce Gift Cards.
This was due to the fact that in the Frontend JavaScript settings, we had Defer Render-blocking JavaScript turned on. This was causing an error in the browser console where WooCommerce was complaining that jQuery was not defined. This meant our booking forms and some of our checkout was not rendering properly, or at all.
We’ve had this setting turned on for a while, it was only detected as an issue for us in the last couple of days, so I’m not sure if WordPress was taking too long to load jQuery that the Speed Optimizer plugin decided to defer it?
When we turned this setting off, it all worked as normal.
We’re also using SiteGround Hosting, so assume that there was no conflict with how our hosting is functioning.
While we’ve found a workaround by turning that setting off, I’d be interested to know if that’s the expected behaviour of the Defer Render-blocking JavaScript setting, or if there’s an (occasional or consistent) error in how it handles this on WooCommerce sites?
- You must be logged in to reply to this topic.