Change delayed loading Javscript to deferred, purge cache and try again.
Thread Starter
rilo77
(@rilo77)
Thanks for answering!
Super, it solved my problem!
-
This reply was modified 30 minutes 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 4 minutes ago by
rilo77.