Configuring Optimization Settings for WPForms in LiteSpeed Cache

Are you facing issues with WPForms due to LiteSpeed Cache settings? LiteSpeed Cache is a popular plugin for optimizing site performance on LiteSpeed servers, but its JavaScript optimization features can sometimes interfere with WPForms.

This guide will show you how to adjust LiteSpeed Cache settings to ensure WPForms runs smoothly.


Adjusting LiteSpeed Cache Settings

LiteSpeed Cache is a plugin commonly used on LiteSpeed servers. If this plugin is active on your site, and you’ve identified a JavaScript issue, please try the following steps:

Excluding a Page or Post

If you’re only experiencing a JavaScript issue on a certain page or post where you’re using WPForms, you can choose to exclude it from JavaScript optimization. To do this, go to LiteSpeed Cache » Page Optimization, and click the Tuning tab.

LiteSpeed Cache tuning

Then, scroll to the URI Excludes section, and enter the path to your post or page. For our example, we’ll add our contact page.

URI excludes

Now that you’ve added the path to your post or page, go ahead and click the Save Changes button at the top-right of the page.

Click save changes button LiteSpeed Cache

Excluding WPForms Assets

To exclude WPForms assets from LiteSpeed Cache, go to LiteSpeed Cache » Page Optimization, and click the Tuning tab.

From here, locate the JS Excludes field, and input the following script:

/wp-content/plugins/wpforms/assets/js/frontend/wpforms.min.js

Exclude JS scripts - LiteSpeed Cache

Once, you’ve added the script, click the Save Changes button located at the top-right of the page.

Click save changes button LiteSpeed Cache

If you’re still experiencing JavaScript issues after completing the steps above, proceed to the next section.

Disabling JavaScript Optimization

To get to the JavaScript optimization settings, click on the JS Settings tab.

LiteSpeed Cache Page Optimization

Next, if the JS Minify, JS Combine, and Load JS Deferred options are toggled ON, be sure to toggle them to the OFF position.

Toggle JS minify options off

Once, you’ve made your changes, click the Save Changes button located at the top-right of the page.

Save changes button JS settings

Note: For more specific information on LiteSpeed Cache settings, please refer to their documentation.

That’s it! Now you know how to adjust LiteSpeed Cache settings to prevent conflicts with WPForms.

Next, would you like to learn more about troubleshooting JavaScript errors in WPForms? Be sure to check out our troubleshooting JavaScript errors guide for more tips.

The Best WordPress Drag and Drop Form Builder Plugin

Easy, Fast, and Secure. Join over 6 million website owners who trust WPForms.

Please enable JavaScript in your browser to complete this form.