|
|
|
|
|
by leptons
595 days ago
|
|
We don't make any external HTTP requests for any library code. jQuery is embedded into the page HTML file, along with all other required library code necessary for the page to start functioning, in one bundle. Nothing that runs below the fold is executed until the page is scrolled. All scripts are deferred, except the required libraries, one of which is jQuery and is loaded in-line in a <script> block in the page <head>. There's a ton of tricks we use to get to a perfect Google Lighthouse score - we also score perfect 100% on mobile too. This isn't a complex web application but we do a lot of cool front-end stuff. |
|
Serving super common libs, like jQuery, from the lost likely CDN location could maximize the likelihood it's already cached.
I have never personally worked anywhere this mattered.