Daily Shaarli

All links of one day in a single page.

March 12, 2020

"Intersection Observer API Makes Lazy Loading a Snap", Leonardo Maldonado (@leonardomso)
thumbnail

One of the advantages of this API is that you don't have to use a library for this kind of job anymore. The majority of browsers are providing a lot of support for some of the newest and awesome APIs, and this has been improving the experience for users in general, allowing developers to use some native browser APIs and reducing their final code bundle.

"Why Svelte is our choice for a large web project in 2020", Ryan Atkinson (@ryanatkn) #svelte #spa

Svelte provides an enjoyable DX that doesn’t compromise on UX. I think it’ll soon become common knowledge among UI developers that compilers have an advantage over runtime-only frameworks for hitting this sweet spot.
[…]
We’re happy to pay the costs of early adoption when a technology provides significant advantages, and that’s our bet for Svelte.

"The performance benefits of Variable Fonts", Mandy Michael (@Mandy_Kerr)

Variable fonts reduce the overall combined file size and automatically reduce the number of network requests by simply being a variable font.
Even if you consider the slightly larger file sizes, when combined with improved font compression formats like WOFF2, font subsetting and font loading techniques like font-display: swap; we end up in a situation where we can still get smaller overall font file sizes as well as a significant increase in stylistic opportunity.

"Setting Height And Width On Images Is Important Again", Barry Pollard (@tunetheweb)
thumbnail

I love improvements that just work without any effort required of website owners. […] The less friction we can add to introduce these improvements, the more likely they will be adopted, and there’s no better friction than none at all! Fixing the impact of layout shifts on users for responsive images seems to be one such improvement and the web is all the better for it.