• Hi,
    My page at https://reshampanth.com/work/ is not loading completely if I enable JS Merge on Swift.
    In Google Dev Tools, I can see an error that points me to the jquery.js file. Even after excluding the jquery.js file, this issue is still persistent.

    Can you please look into this asap!

    Thank you

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Fred

    (@fredawd)

    To avoid misunderstanding, support for Swift Lite is limited and configuration is not included.

    Fastest solution is to keep merge Scripts disabled. If your website support HTTP/2 there is probably no negative impact on pageload.

    Regarding to HTTP/2
    While concatenation (i.e. merging CSS and JS into fewer files) is considered the best practice under HTTP/1, that’s not necessarily the case with HTTP/2.
    There is ongoing debate whether some concatenation, i.e. merging files into small groups is beneficial. The real answer is that it may vary from site to site. We tend to think that concatenation won’t be as of much benefit on HTTP/2, but you should test the load time of your site with and without these options since results can vary.

    If you want to keep merge Scripts enabled anyway, you′ll need to find the conflicting file(s) and exclude those from combining.

    So you have to learn what elements to exclude. Merge can break certain things because the mechanism doesn’t always load them in the exact perfect order. You would have this problem with other merge plugins as well.

    Thread Starter reshampanth

    (@reshampanth)

    Hi Fred,
    Thank you for your reply.
    I understand that merging js may lead to conflicts and I did a superficial level test and found the error code to be appearing in jquery.js file. I excluded the file, still the problem is not resolved.
    I disabled Merge JS on Swift and used Autoptimize (also tried Fast Velocity Minify) and the JS worked fine. I just don’t want to use a separate plugin for minifying and one for Caching.
    Can you please look into this and guide me to resolving this. I’m really loving your plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Merge JS is breaking website, Excluding the JS doesn’t help either’ is closed to new replies.