9 ms·
It is nearly the same as a placeholder. The advantage is that even without JS, it still functions and has meaning. This is a big advantage. Just as your place
by JoelSutherland 16y ago
It is nearly the same as a placeholder. The advantage is that even without JS, it still functions and has meaning. This is a big advantage.
Just as your placeholder could happen in post processing, so could the suffix and attribute be added.
Having looked into this more there seem to be only three decent approaches. 1) Send the small image first potentially causing extra HTTP requests. 2) Require JS to make a placeholder swap. 3) Cap the image dimensions server side based on a User Agent/Resolution table.
Option 3 is terrible to implement but avoids the downsides the others have.