Autoptimize: Fixing the JavaScript Option from breaking SCC
Autoptimize: exclude Stylish Cost Calculator assets
If Autoptimize aggregates/minifies assets, exclude the calculator scripts/styles so the calculator keeps working.
Exclude these paths/handles:
- /wp-content/plugins/stylish-cost-calculator-premium/dist/frontend/scc-js-frontend-bundle.js
- /wp-content/plugins/stylish-cost-calculator-premium/assets/js/smarturl-frontend.js
- /wp-content/plugins/stylish-cost-calculator-premium/assets/js/scc-distance-element-scripts.js
- /wp-content/plugins/stylish-cost-calculator-premium/dist/frontend/css/scc-css-frontend.min.css
- /wp-content/plugins/stylish-cost-calculator-premium/assets/css/checkboxes/checkboxes.css
- /wp-content/plugins/stylish-cost-calculator-premium/lib/flatpickr/css/flatpickr.min.css
- /wp-content/plugins/stylish-cost-calculator-premium/lib/tom-select/css/tom-select.css
After adding exclusions, clear Autoptimize + site cache and retest the calculator.
Updated on: 25/11/2025
Thank you!