Home Forums WoodMart support forum Split Woodmart scripts into smaller files for performance

Split Woodmart scripts into smaller files for performance

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #272823

    Jeriss Cloud Center
    Participant

    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

    #272920

    Artem Temos
    Keymaster

    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

    #272956

    Jeriss Cloud Center
    Participant

    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

    #272968

    Artem Temos
    Keymaster

    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.

    #273289

    Jeriss Cloud Center
    Participant

    Here is my email in private if you don’t want to make the file public before release
    Thanks

    #273487

    Artem Temos
    Keymaster

    Hello,

    Thank you very much. We will contact you if we get some beta version to test.

    Kind Regards

Viewing 6 posts - 1 through 6 (of 6 total)