Load after user scrolls
-
Hey,
Sometime ago I found a way to get high score on lighthouse and improve ux by simply loading most add-ons after the user scrolls. I use the following script:
window.addEventListener(‘scroll’,() =>
setTimeout (() => {
//whatever
}, 500),
{ once:true }
);Is there a way that I can add this to your plugin so that it loads after the user has scrolled 500px? It doesn’t make sense to have it active before that.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Load after user scrolls’ is closed to new replies.