1️⃣ If you don’t know Intersection Observer for detecting/loading images/script/whatever, here’s a basic-example example:
codepen.io/sdras/pen/cecb…
Docs: developer.mozilla.org/en-US/docs/Web…
But then I take it another step and use @shshaw's SVG converter, brought >1MB imgs down to 30kb without loss of quality!
s.codepen.io/shshaw/debug/L…
Netlify will allow you to configure your headers with a small _headers file for efficient caching: netlify.com/docs/headers-a…
Playground here: play.netlify.com/headers
font-display.glitch.me
And check out this huge repo of web font loading recipes by @zachleat! 😱
github.com/zachleat/web-f…
github.com/GoogleChromeLa…
Docs: developer.mozilla.org/en-US/docs/Web…
Great writeup by @addyosmani here on some of the wins! 🏆: medium.com/reloading/prel…