Re:Show HN: Gandul – accessible image lazy loading
by duhi88 on Wednesday April 17, 2019 @06:45PM
(#19687088)
Why not? I think it is a fair replacement for a lot of image use-cases. If JS is turned off, users still have the ability to view the image and description, without the image hurting your total page weight.
Re:Show HN: Gandul – accessible image lazy loading
by keanebean86 on Wednesday April 17, 2019 @11:20PM
(#19688456)
Have a style sheet at the bottom of the page below some js. The js sets up lazy loading and changes all the image div id/classes so the style sheet does nothing. The style sheet sets the image divs backgrounds to your images otherwise. That should still work without js. Although it's a mess to work with...
I'd much rather have image solutions that fail gracefully if the JS on my page is broken or the user just has it disabled.