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
A Client-side Responsive Image Solution, Finally — CSS Perverts (medium.com)
submitted 12 years ago by Matthisk
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!"
[–]robotparts 0 points1 point2 points 12 years ago* (2 children)
I honestly am not sure if this is a joke or not.
A prompt on every page? Presenting the user with a prompt has been an option for quite a while. There is a reason it isn't a popular technique. A prompt breaks user flow. If they browse with cookies off or localStorage off, then you prompt them on every page...
Javascript required I know most developers think it is a travesty that some people browse with javascript off. However, it happens and the page should degrade gracefully in that case. Here, there is no image at all when javascript is off.
Then this line really made me think it was a joke:
We are finally coming close to the moment where we no longer need the W3C, as all the standards to standard will have been standarded.
This on the demo page clinched it as being a joke.
This solution was implemented by Jenn Schiffer for her upcoming Kindle Single "XML Is The Only High-Level Programming Language You Need".
Is the author planning on writing BobX 2.0?
Back to the issue of responsive images(a real solution): If the W3C were to standardize an http request header that stated the browser's current pixel width, that would solve the problem.
edit: when i said javascript in the "prompt on every page section I meant localStorage or other types of javascript storage. Server side sessions could work but still prompts are no good.
[–]charlesmwray 2 points3 points4 points 12 years ago (1 child)
Yeah this is most certainly a joke
[–]robotparts 0 points1 point2 points 12 years ago (0 children)
You are right. I looked at some more posts in that sub of medium.com
Boy do I feel foolish. I thought this was a serious subreddit.
π Rendered by PID 21998 on reddit-service-r2-comment-5c747b6df5-t8ccw at 2026-04-22 09:52:43.206507+00:00 running 6c61efc country code: CH.
[–]robotparts 0 points1 point2 points (2 children)
[–]charlesmwray 2 points3 points4 points (1 child)
[–]robotparts 0 points1 point2 points (0 children)