-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alternative method to onload in dom? #45
Comments
Yes that is a very good idea and depending on how we would implement it, it could solves issues like #45. Do you have any idea on how the manual initialize would look like? |
I would look for inspiration in https://github.com/desandro/imagesloaded One method would be to define a container and attach lazyload to every image in it. A setting could override what we're looking for, allowing us to get more elements than just images. Like iframes and the other things currently supported. Something along |
@oskarrough That is a good idea, and we can tackle it from different angles:
What do you think? |
Closing as no further discussion for the moment |
Hi, might be a stupid question but how'd you use lazyload without onload attributes on every element? Is it possible to initialize the method globally?
The text was updated successfully, but these errors were encountered: