WP Rocket: Fixing JavaScript errors on pages with Stylish Cost Calculator

Follow the steps to fix JavaScript errors on frontend pages cached/optimized by WP Rocket and has 'Stylish Cost Calculator' forms.

Go to WP Rocket Settings



Navigate to WP Rocket settings

Exclude Stylish Cost Calculator Files


If you use Stylish Cost Calculator Premium, use the following pattern in the exclusions list

/wp-content/plugins/stylish-cost-calculator-premium/assets/js/(.*).js
/wp-content/plugins/stylish-cost-calculator-premium/dist/frontend/(.*).js


Exclude Files

If you are using Stylish Cost Calculator free version, use the following

/wp-content/plugins/stylish-cost-calculator/assets/js/(.*).js

Updated on: 22/08/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!