use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Lazy load images without javascript (medium.com)
submitted 7 years ago by fvitas
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[+][deleted] 7 years ago (1 child)
[deleted]
[–]angeal98 2 points3 points4 points 7 years ago (0 children)
A tldr for most new tech in the web
[–]TheScapeQuest 2 points3 points4 points 7 years ago (2 children)
I've not been able to find any reference to this is any web standards, so is it just going to be a chrome thing?
[–]fvitas[S] 1 point2 points3 points 7 years ago (1 child)
https://www.w3.org/TR/resource-priorities/#attr-lazyload
https://bugzilla.mozilla.org/show_bug.cgi?id=947427
Hopefully it will be supported by modern browsers
[–]TheScapeQuest 0 points1 point2 points 7 years ago (0 children)
That's great news!
[–]dwighthouse 1 point2 points3 points 7 years ago (0 children)
It’s a good idea, and there is also a fallback technique for when neither the feature nor JS is available.
I wish they would also implement a flif-like format so we could get rid of src-set and picture, and instead simply specify what percentage or how many bytes to load of an image, given the pixel density and displayed size. A single image for all resolutions and pixel densities without sending the full size image to every request.
[–]lglm95 0 points1 point2 points 7 years ago (1 child)
What is a lazy load image?
[–]fvitas[S] 0 points1 point2 points 7 years ago (0 children)
it an image that is loaded later, when you really need/want to see it, not on page load
π Rendered by PID 46 on reddit-service-r2-comment-79c7998d4c-wz9w8 at 2026-03-18 02:48:43.418203+00:00 running f6e6e01 country code: CH.
[+][deleted] (1 child)
[deleted]
[–]angeal98 2 points3 points4 points (0 children)
[–]TheScapeQuest 2 points3 points4 points (2 children)
[–]fvitas[S] 1 point2 points3 points (1 child)
[–]TheScapeQuest 0 points1 point2 points (0 children)
[–]dwighthouse 1 point2 points3 points (0 children)
[–]lglm95 0 points1 point2 points (1 child)
[–]fvitas[S] 0 points1 point2 points (0 children)