Building average phone (Moto G4) takes or the ~36s taken by a low-end 2018 phone (Alcatel 1X).
Today we’ll cover some strategies you can use to deliver JavaScript efficiently while still giving users a valuable experience.
Experiences that ship down this much JavaScript take more than Bringing Facebook.com and the web up to speed”. Sites like Google Sheets are highlighted as shipping up to 5.8MB of script (when decompressed).
We’re hitting this ceiling across both desktop and mobile web, where sites are sometimes shipping multiple megabytes-worth of code that a browser then needs to process. The question to ask is, React, Twitter and Tinder saw anywhere up to a 50% improvement in their Time to Interactive when they adopted aggressive code splitting.
Stacks like Webpack Bundle Analyzer, date-fns).
If you use webpack, you may find our repository of Chrome extension. It gives you an in-depth performance analysis that highlights opportunities to improve performance.
We’ve recently added support for flagging high “PRPL pattern.
PRPL (Push, Render, Precache and Lazy-Load) is a pattern for aggressively splitting code for every single route, then taking advantage of a tweet-storm about performance budgets with a few salient points worth noting:
Third-party JavaScript if this is currently the primary bottleneck you’re experiencing.
Performance is a journey. Many small changes can lead to big gains.
Enable users to interact with your site with the least amount of friction. Run the smallest amount of JavaScript to deliver real value. This can mean taking incremental steps to get there.
In the end, your users will thank you.
References
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant