• Resolved raha1988ab

    (@raha1988ab)


    Hello,

    Our theme uses a standard?load?event, which is triggered by the browser once the page is fully loaded. So it should run our JS function to init the carousel?swiperInit().?https://gyazo.com/ed169bfc688d2982c6de470ecc266eb1
    But when you use delayed JS execution, the Litespeed plugin loads script files only when you move the mouse. And the?load?event doesn’t trigger. If we try to run this function manually it works without any problems (screenshot).

    https://prnt.sc/jYnfaRnxVflg

    Other cache plugins, like WP Rocket, do not have this problem. Therefore, you need to contact the plugin’s developers for help or use a different cache plugin since Litespeed is not fully compatible with WoodMart

    Kind Regards

    Report number:?BMAEVQYU

    Report date:?03/28/2024 10:30:51

    • This topic was modified 6 months, 2 weeks ago by raha1988ab.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support qtwrk

    (@qtwrk)

    you may need to exclude such js from being delayed.

    Thread Starter raha1988ab

    (@raha1988ab)

    Deferred or delayed, both of them are the same

    Plugin Support qtwrk

    (@qtwrk)

    yeah , that’s what I meant , you need to exclude the JS you need it to run without being deferred/delayed

    Thread Starter raha1988ab

    (@raha1988ab)

    its not clear to me. 2 month ago you told me and I put 2 js file in those sections and it wont work at all!

    your plugin wasn’t update since 5 month ago and there is problem with theme

    how could you developers talk to woodmart theme?

    this is an email for them [email protected]

    @raha1988ab

    Just add the following to JS Deferred / Delayed Excludes (Page Optimisation -> Tuning) and the issue will be fixed.

    (Woodmart changed their JS libary for the swiper)

    jquery.js
    jquery.min.js
    gtm.js
    analytics.js
    helpers.min.js
    clickOnScrollButton
    searchFullScreen
    menuOffsets
    menuDropdowns
    cartWidget
    mobileNavigation
    loginSidebar
    menuSetUp
    cart-fragments
    slick
    productImages
    cookie.min
    owl.carousel
    owlCarousel
    imagesLoaded

    • This reply was modified 6 months, 1 week ago by daivymerlijs.
    Thread Starter raha1988ab

    (@raha1988ab)

    @daivymerlijs

    Hello, Thank you for this file name,

    1-Yes it is woodmart,

    2-I already add them to the JS Deferred / Delayed Excludes (Page Optimisation -> Tuning)

    the problem is the speed, when I did not add them, the speed in mobile was around 80 but when I added all these scripts, mobile speed came down to 50 in page speed insight

    Do you have suggestions?

    I would suggest to not pay too much attention to PageSpeed insight, but to focus mainly on loading speed. If your loading speed is decent, you should not bother too much.

    The pproblem with page speed insight is that is does not measure loading time : https://www.cachecrawler.com/Knowledgebase/PageSpeed/PageSpeed-Loading-Time::6568.html

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Woodmart problem with JS swiperInit()’ is closed to new replies.