Title: Issues with WPRocket&#8217;s defer enabled
Last modified: March 11, 2021

---

# Issues with WPRocket’s defer enabled

 *  Resolved [mhogas](https://wordpress.org/support/users/mhogas/)
 * (@mhogas)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/issues-with-wprockets-defer-enabled/)
 * Hey guys,
 * Unfortunately i can’t share an example link of the issue in action, but here’s
   the console error [https://d.pr/i/yFDT1I](https://d.pr/i/yFDT1I) .
 * What i think it happens, when deferring is enabled, wp-util (underscorejs) is
   not yet ready, but the _.contains call from frontend.js is calling it too early.
 * I would probably suggest creating the WooVariationSwatches on document.ready()?
 * Marius

Viewing 1 replies (of 1 total)

 *  [hakikzaman](https://wordpress.org/support/users/hakikzaman/)
 * (@hakikzaman)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/issues-with-wprockets-defer-enabled/#post-14189487)
 * Hello [@mhogas](https://wordpress.org/support/users/mhogas/)
 * What is your current and previous version of the swatches plugin?
 * Thank you

Viewing 1 replies (of 1 total)

The topic ‘Issues with WPRocket’s defer enabled’ is closed to new replies.

 * ![](https://ps.w.org/woo-variation-swatches/assets/icon-256x256.gif?rev=3157951)
 * [Variation Swatches for WooCommerce](https://wordpress.org/plugins/woo-variation-swatches/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-variation-swatches/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-variation-swatches/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-variation-swatches/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-variation-swatches/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-variation-swatches/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [hakikzaman](https://wordpress.org/support/users/hakikzaman/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/issues-with-wprockets-defer-enabled/#post-14189487)
 * Status: resolved