2 ms·
All you really need to do to get a 100 perf score is to cut out any unused elements, only load the CSS you need, load any JS you need as late as possible (defer
by onion2k 6y ago
All you really need to do to get a 100 perf score is to cut out any unused elements, only load the CSS you need, load any JS you need as late as possible (defer the <script> at least), and optimize your fonts and images. If you're using a decent host that has a point of presence fairly close to where Lighthouse is running then you should get a decent score. My own website has a 4x100 Lighthouse score.
If you're interested in this sort of optimization then Zach Leatherman's "Speedlify" is a good tool for doing continuous monitoring - https://www.zachleat.com/web/speedlify/ https://www.zachleat.com/web/speedlify/
- divbzero 6y ago“Only load the CSS you need” is the piece I don’t have a go-to tool for. Coverage in Chrome DevTools provides a quick but manual way to identify above-the-fold CSS. Critical, criticalCSS, and Penthouse all look like good options for a build process. [1] [2] [1]: https://web.dev/defer-non-critical-css/ https://web.dev/defer-non-critical-css/ [2]: https://web.dev/extract-critical-css/ https://web.dev/extract-critical-css/