Preload Key Requests
What are Key Requests?
How to Preload Key Requests
Key requests can be implemented by using the ‘’ attribute. One important note about preloaded resources is that they can be cached, so they do not have to be downloaded on subsequent visits. Furthermore, adding the ‘as’ attribute will help determine to the browser how these requests can be prioritized and whether or not the resources are already cached. And as we mentioned in a previous section, this all helps to offload main-thread work to the browser so that the page can load faster for users, and they can begin interacting with it sooner.
Lighthouse is an open-source tool that is used to run an audit against your web pages and provides scores and suggestions for improving page performance, accessibility, SEO, and more.
PageSpeed Insights is a tool created by Google that reports on the performance of a page on both mobile and desktop devices, and provides suggestions on how that page may be improved.