PageSpeed Optimizations – Inline Small JavaScript
Like the process of inlining small CSS files, inlining small JavaScript files can provide similar benefits, like reducing the time it takes to fetch and download individual JavaScript files. It is important to note that this should be done in cases where it makes sense. One of the drawbacks of inlining CSS or JavaScript into HTML is that they are not typically cached, so the whole HTML document must be fetched every time. So, too much of a good thing is not always a good thing. Inline your JavaScript files where it makes sense and do not go overboard with it.
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.
YSlow is an open-source website analysis tool that can be used to identify web page performance issues. Learn more about the YSlow to enhance your web pages and the user experience.
Run a free real-browser speed test from up to 3 of 30+ locations: Lighthouse, waterfall, Core Web Vitals and video.
Run a free speed test