4 ms·
It's nice when performance improvements can be abstracted away or optimized in the browser. HTTP2/3 are good examples. Something like lazy loading images could
by tppiotrowski 6y ago
It's nice when performance improvements can be abstracted away or optimized in the browser. HTTP2/3 are good examples.
Something like lazy loading images could be implemented in the browser, but instead we each spend time devising our own lazy loading hacks. Vendors add W3C specs like IntersectionObserver to an ever growing list of web API's that must overwhelm new comers.
I guess it's nice that we have complete control over everything but the web reminds me of Android (more control/complicated). I want Apple (works well enough/simple).
- asddubs 6y agolazy loading images are implemented in the browser, you just need to add the loading="lazy" attribute to your img tag intersectionobserver still has a ton of use cases where it's massively faster than continuously monitoring the scroll event (e.g. infinite scrolling)