Title: js problem with caching
Last modified: February 4, 2020

---

# js problem with caching

 *  Resolved [kawians](https://wordpress.org/support/users/kawians/)
 * (@kawians)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/js-problem-with-caching/)
 * Hi
 * Thanks again for your wonderful plugin.
    Recently I’ve started using Wp-Rocket
   for increasing my website load speed. Unfortunately, there is a problem between
   wp rocket and all in one gallery. When I active wp-rocket, my videos don’t show
   up anymore. I checked the inspect element and there is an error with the below
   line:
 * var player = videojs( ‘player’, settings );
    and the error is: can’t find variable:
   videojs
 * I tried so many things like making exclude for this path: “wp-includes/js/mediaelement/”
   in regards to [this topic](https://wordpress.org/support/topic/not-working-for-me-239/)
   and it didn’t solve the problem.
    I tried [this solution](https://docs.wp-rocket.me/article/915-find-the-right-js-files-to-exclude-from-minification)
   which was suggested by wp rocket for js problems and I couldn’t find out how 
   to solve the problem for all in one gallery.
 * I just found a single solution that is deactivating js in the wp-rocket setting
   which leads to slow down my web loading speed.
 * As I want to use your plugin for my videos and it’s much better than any plugin
   I found, I would be really grateful if you could help me with this problem.
 * Thank you so much in advance
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjs-problem-with-caching%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [wpvideogallery](https://wordpress.org/support/users/wpvideogallery/)
 * (@wpvideogallery)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/js-problem-with-caching/#post-12399830)
 * Kindly try adding the following path in the “Exclude JavaScript Files” text field
   in the “File Optimization” tab of the WP Rocket plugin.
 * `/wp-content/plugins/all-in-one-video-gallery/public/assets/player/videojs/video.
   min.js`
 * Hope, this solved your issue!
 * In case the issue remains, kindly submit a ticket here [https://plugins360.com/support/](https://plugins360.com/support/)
 *  Thread Starter [kawians](https://wordpress.org/support/users/kawians/)
 * (@kawians)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/js-problem-with-caching/#post-12400592)
 * It didn’t work for me, unfortunately.
    I wrote about the problem completely with
   the details in plugins360 support.
 * Thank you so much for your kind help.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘js problem with caching’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-video-gallery/assets/icon-256x256.png?rev=3078876)
 * [All-in-One Video Gallery](https://wordpress.org/plugins/all-in-one-video-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-video-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-video-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-video-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-video-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-video-gallery/reviews/)

## Tags

 * [js](https://wordpress.org/support/topic-tag/js/)
 * [WP Rocket](https://wordpress.org/support/topic-tag/wp-rocket/)

 * 2 replies
 * 2 participants
 * Last reply from: [kawians](https://wordpress.org/support/users/kawians/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/js-problem-with-caching/#post-12400592)
 * Status: resolved