Author is Aleš Sýkora
Updated: 19. 4. 2022, Added: 19. 4. 2022
WP Rocket - Delay JavaScript execution with Oxygen and OxyExtras
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
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!
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.