-
Notifications
You must be signed in to change notification settings - Fork 449
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
Testing for image element #48
Comments
Your welcome :) Regarding:
Can you share an example where the image needs a |
Oh absolutely never! I was strictly talking about data attribute naming. |
@aderaaij considering that Lozad.js allows lazy loading of several other elements such as iframes, video, picture elements etc. as well, thus will be better to have the implementation as is |
Hi! Thanks for the awesome library!
I was wondering if it would be an idea to actually test for the
img
element in the check that you do? Seeing that thesrc
attribute can only be applied to a limited amount of elements, it would be easy to test for those and add specific functionality for them, and otherwise for background images. This way we can give the background image a regulardata-src
as well, instead of thedata-background-image
we've got now.Something like:
maybe?
The text was updated successfully, but these errors were encountered: