Unnecessary JS files - Forum | JoomShaper
Staff replied SP Page Builder

Unnecessary JS files

Asked by Petr Benes 5 months ago Last activity 5 months ago

Hello,

why are loaded unnecessary JS and CSS files on the frontend?

For example:
/components/com_sppagebuilder/assets/css/color-switcher.css (disabled in the SPPB config)
/components/com_sppagebuilder/assets/js/jquery.parallax.js
/components/com_sppagebuilder/assets/js/jquery.magnific-popup.min.js

Thanks, Petr

2 replies

Petr Benes Asked this

also
/components/com_sppagebuilder/assets/js/color-switcher.js

Atick Eashrak Shuvo Staff

Hello Petr,

Thank you for bringing this to our attention, and I apologize for the inconvenience caused.

Regarding the color-switcher assets, this issue has already been addressed in SP Page Builder version 6.4.0. Please ensure that your installation is updated to the latest version, as this should prevent those specific CSS and JS files from loading when the feature is disabled.

As for the other assets you mentioned (such as jquery.parallax.js and jquery.magnific-popup.min.js), these are currently bundled and loaded by default as part of the core functionality. At this time, there is no built-in option to selectively disable them from the configuration panel.

Best regards

Log in to reply.