Skip to content

Conversation

dalin-
Copy link

@dalin- dalin- commented Apr 1, 2025

In the issue queue there's several suggestions about how to lazy load images. However they are all a bit lacking. They still require adding delay or postInteractionWait to wait for the images to load. To do it right we need a promise.

Here's a draft PR that does it marginally better. But images aren't the only thing that can be lazy. I haven't tested this code on lazy iframes (and the variables should be renamed to indicate that).

I'm also not a JS engineer (is it obvious). So this might be improved even more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant