Re:Show HN: An Almost Ideal React Image Component
by zaroth on Friday June 01, 2018 @07:43PM
(#17211530)
Because there’s no way to standardize the behavior across user agents to the extent necessary that developers could actually rely on it producing a consistent experience across a large user-base.
Re:Show HN: An Almost Ideal React Image Component
by TheRealPomax on Saturday June 02, 2018 @01:43PM
(#17215542)
Conversely, there is also no way to standardize which solution to use to the extent necessary that developers could actually rely on it producing a consistent experience across a large user-base.
You don't need standard behaviour, you just need _good_ behaviour. And if every browser does that differently, but it's appropriate to the network speed and processing capabilities, then as a dev the issue of "making sure images load appropriately" becomes as irrelevant as "making sure your webfont actually loads" has become in the modern browser landscape.
Re:Show HN: An Almost Ideal React Image Component
by lozenge on Saturday June 02, 2018 @06:32AM
(#17213900)
Downloading all the images provides a good user experience. If your intranet has a GB of images on a single page, that's on you - even if browsers did as you suggest, any older browser would still saturate your network link.
These fancy image placeholders seem more designed to save on CDN costs than to provide a good UX.
Re:Show HN: An Almost Ideal React Image Component
by TheRealPomax on Saturday June 02, 2018 @01:40PM
(#17215522)
I think you misread what I said as "I want the browser to load all the images, all the time" instead of "I want the browser to download and render in ways that are appropriate to the constraints of the network and processing power, not have to rely on a million folks each inventing their own lazy-loader".
React components like these are nice, but the real question is why doesn't your _browser_ already do this. Not "why doesn't the spec say what needs to happen", but why haven't Microsoft, Google, Mozilla, Opera, etc. implemented network-and-content-traversal-appropriate image handling? (one answer might be "because apparently users don't actually ask for it enough", but I honestly don't know).