WP Rocket Settings for Wistia Compatibility
Support Guide

WP Rocket Settings for Wistia Compatibility

Ensure smooth playback by excluding Wistia's JavaScript from File Optimizations

WP Rocket is a popular plugin for optimizing the performance of WordPress sites. While it offers a convenient way to boost the speed of your pages, WP Rocket's file optimization features can break Wistia embeds if not configured correctly. To successfully embed videos on sites running the WP Rocket plugin, Wistia's JavaScript must be excluded from file optimizations in your plugin settings.

Important

Wistia's JavaScript files, such as player.js (Aurora) and E-v1.js (Vulcan), must not be modified, delayed, or combined/re-hosted. Any of these modifications to Wistia JS can break functionality or prevent embeds from loading on your pages.

Exclude Wistia's scripts from JavaScript file optimizations

The following scripts should be excluded from any WP Rocket modification:

Aurora Player
  • https://fast.wistia.com/player.js
    Required for all Aurora embeds*
Legacy Player (Vulcan)
  • https://fast.wistia.com/assets/external/E-v1.js
    Required for all legacy embeds*
Transcript
  • https://fast.wistia.net/assets/external/transcript.js
    Required for Transcript embeds
Channel
  • https://fast.wistia.com/assets/external/channel.js
    Required for Channel embeds
Webinar Registration Forms
  • https://fast.wistia.net/assets/external/form.js
    Required for Webinar Registration Forms

*Includes video, audio, and Webinar embeds.

Not sure which player you're using? Aurora embeds use a <wistia-player> component and player.js. Legacy embeds use E-v1.js. Learn more about Aurora →

How to update your WP Rocket exclusion lists

  1. From your WP Admin page, go to "Plugins".

    WP Admin Plugins page showing WP Rocket plugin
  2. Find WP Rocket in the plugin list and select Settings, then go to File Optimization.

    WP Rocket Settings and File Optimization
  3. Under JavaScript Files, add the necessary Wistia scripts to each Excluded JavaScript Files list. These scripts must be excluded from any active JavaScript settings: Minify/Combine JavaScript, Load JavaScript Deferred, and Delay JavaScript execution.

    WP Rocket JavaScript Files exclusion settings
  4. Click Save Changes.

  5. There may be a delay in seeing these settings take effect, which you can speed up by clearing the WordPress site cache and clearing your personal browser cache.