• Resolved rilo77

    (@rilo77)


    I′m using Litespeed cache and DIVI. I have a slide show on a page and on desktop view all is fine, but visiting the site on my mobile, the slide show doesn′t work, not until I tap the screen or scroll. When I deactivate LS everything works fine.

    Is it possible to make an exception for the mobile view in LS or what is your recommendations for me?

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Change delayed loading Javscript to deferred, purge cache and try again.

    • This reply was modified 1 year, 10 months ago by serpentdriver.
    Thread Starter rilo77

    (@rilo77)

    Thanks for answering!
    Super, it solved my problem!

    • This reply was modified 1 year, 10 months ago by rilo77.

    If you use this option to delay the loading of js scripts:

    LiteSpeed Cache -> Page Optimization -> JS Settings -> Load JS Deferred -> Delayed

    …then the js scripts will load only when the user moves the mouse (desktop) or touches the screen (mobile). I also use this option. I add critical scripts that need to load immediately (visible at the top of the screen) to the exclusion list:

    LiteSpeed Cache -> Page Optimization -> Tunning -> JS Deferred / Delayed Excludes

    Technically, that’s actually not possible. This slideshow requires Javascript, which is only loaded after a user action with delayed and is therefore loaded too late. In this context, deferred means that Javascript is loaded before a user action, but after the DOM has been loaded.

    …then the js scripts will load only when the user moves the mouse (desktop) or touches the screen (mobile). I also use this option. I add critical scripts that need to load immediately (visible at the top of the screen) to the exclusion list:

    So I was right after all.

    Thread Starter rilo77

    (@rilo77)

    Thank you, @pepe80
    A bit hard for me, not being superused to find the specific script and format of the script to add to the exclusion list. But I see the point.
    Quick question: Is the option to delay JS better to use than deferred JS in order to get the most out of Litespeed cache?

    Thread Starter rilo77

    (@rilo77)

    @serpentdriver , yes you were ?? Thanks! I mixed up the swedish words for delayed and deferred… my bad.

    • This reply was modified 1 year, 10 months ago by rilo77.

    @rilo77 using the “Delayed” option will get you more points in the speed measurement tools like pagespeed.web.dev because they won’t detect these delayed scripts.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Litespeed and Divi – slideshow in mobile view problem’ is closed to new replies.