Hi,
Thank you for raising these questions. Yes JS code has been used for different modules where needed. However, we made sure to load those JS on pages where that module is being used.
So Not all the JS has been enqueued by default. If on a page you add slider module it’s JS will be enqueued with that on that particular page. The same is with other modules.
For the CSS there is one main CSS file that enqueued by default which includes all the needed CSS for all modules. And if a module depends on some extra CSS code (like a slider), that enqueued only when that module is being used (similar to JS).
Hope that answers your questions. I would suggest you give it a try and pass your feedback to improve it further.
Thanks
Hi there,
thank you for your detailed reply. It sounds very positive that the necessary scripts are only loaded when they are needed. I will try it out and report! I prefer not to use dependencies for my websites. Example: JQuery. I mainly try to use “Vanilla” Javascript. But I think you’re using JQuery here, right? I don’t find it bad per se. Think it is necessary due to the abundance of options?
Thanks again for your answer!
Best regards
Mikkel
Hi @mikkelcrunch,
Yes, JQuery libraries are used in the module(s) where needed. But as I explained, it is optimized to put as less impact on website performance as possible.
And if you see something should be improved, please do suggest that and I will surely look into this.
Marking this ticket as resolved for now. Feel free to reopen it if you need to, or create a new ticket for anything else. 😇
Thanks,
Munir