Aleš Sýkora / November 28, 2023 / 2 comments

WP Rocket – Delay JavaScript execution with Oxygen and OxyExtras

Post summary: When using WP Rocket, you may speed up your site with delaying .js execution. You can encounter some issues when using it with Oxygen builder. Then you need to exclude some scripts from delaying. When using Oxygen Pro Menu element When using OxyExtras Pro Media player When using WooCommerce Stripe plugin

When using WP Rocket, you may speed up your site with delaying .js execution. You can encounter some issues when using it with Oxygen builder. Then you need to exclude some scripts from delaying.

When using Oxygen Pro Menu element

/jquery-?[0-9.](.*)(.min|.slim|.slim.min)?.js
/jquery-migrate(.min)?.js
/component-framework/vendor/aos/aos.js
AOS.init
oxygen_init_pro_menu
oxy-pro-menu-show-dropdown

When using OxyExtras Pro Media player

vime
vime.esm.js

When using WooCommerce Stripe plugin

js.stripe.com

Fuel my passion for writing with a beer🍺

Your support not only makes me drunk but also greatly motivates me to continue creating content that helps. Cheers to more discoveries and shared success. 🍻

2 comments

  • Thank you for the post Ales! I’d like to add in that activating the “Minify JS” might also cause problems to OxyExtras. In order to fix this, you could either deactivate that setting or add this to the exception

    /wp-content/plugins/oxyextras/components/assets/vime/@vime/core/dist/vime/(.*).js

    Thank you for your post!

  • A

    Hello Jose, thanks for the feedback! I don’t use the minify JS option much because most times scripts are minified already. Thanks for your insight.

Share Your Thoughts