• Resolved mazikeen

    (@mazikeen)


    As the title said, whenever i enable the “JS Combine” setting under the Page Optimization section, it causes my js script to run “TWICE”. (tested with results via console.log)

    Here’s a screenshot to be clearer: https://ibb.co/phc8QK1

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support qtwrk

    (@qtwrk)

    please check this page , you may need to exclude the script that runs it

    Thread Starter mazikeen

    (@mazikeen)

    I don’t think it has to do with my script cause even the LazyLoad (Litespeed) is being called twice.


    Are there any other things that could possibly cause this? Like does Cloudflare rocketloader can cause such thing to happen?

    Plugin Support qtwrk

    (@qtwrk)

    if it happens after the JS combine , I can only imagine the script that calls or loads other script was combined into single file ,and this single file hit some kind of “self-loading loop” that loads itself (and other sub-js) again after first load

    Thread Starter mazikeen

    (@mazikeen)

    Hello,

    Yes it happens after JS Combine. However, I already tried excluding ALL my JS scripts but it’s still the same. It still causes the same issue as i still see the “[LiteSpeed] Start Lazy Load Images” being called twice on console log.

    • This reply was modified 1 year, 5 months ago by mazikeen.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Enabling “JS Combine” causes js scripts to run twice.’ is closed to new replies.