Split Woodmart scripts into smaller files for performance
-
Dear,
I would like to have your opinion on a topic related to the way Woodmart scripts are designed and how they can be improved to fit with Core Web Vitals.
For instance, the js script “\wp-content/themes/woodmart/js/functions.js” contains hundreds of diffèrent functions all mixed up into 1 file.
However, we all know that combining everything in 1 file is not a good behavior anymore, especially with HTTP2. The consequence is that many js functions are loaded altough we may not always use them all.
You’ve designed a wonderful CSS Generator. Could it be possible to do the same for JS functions? Allow us to enable only scripts that we use from your theme instead of loading 100%, which obviously will never be the case.
Thanks
Hello,
Yes, this will be implemented in our next update. Our CSS generator will be removed and both JS and CSS files will be split into small parts. Only required parts will be loaded on a particular page.
Kind Regards
That will be an awesome improvement for your theme!
If you need beta testers for this, don’t hesitate to send me I could test on staging.
Thanks
That would be very kind of you. We will think about it before the release. We hope to complete it by the end of this month.
Here is my email in private if you don’t want to make the file public before release
Thanks
Hello,
Thank you very much. We will contact you if we get some beta version to test.
Kind Regards