Skip to content
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

With JavaScript off, no images are shown. #12

Closed
brucelawson opened this issue Sep 7, 2017 · 5 comments
Closed

With JavaScript off, no images are shown. #12

brucelawson opened this issue Sep 7, 2017 · 5 comments

Comments

@brucelawson
Copy link

brucelawson commented Sep 7, 2017

https://apoorv.pro/lozad.js/demo/

(because no src="" attribute on img elements for fallback. Also, alt attribute is malformed; should be alt="")

@ApoorvSaxena
Copy link
Owner

fixed, thanks for reporting 👍

@brucelawson
Copy link
Author

Thanks for fixing. I'd wondered about progressively enhancing a conventional img element so <img src="picture.png" alt="" class="lozad">. If no JS, this loads normally, if JS is enabled, lozad can step in and lazy load them. (But that might be wasteful because the browser's pre-renderer might already have fetched the images?)

@styfle
Copy link

styfle commented Sep 7, 2017

that might be wasteful because the browser's pre-renderer might already have fetched the images

Yes I believe that would happen.

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

No branches or pull requests

4 participants
@styfle @ApoorvSaxena @brucelawson and others