Grokking the Modern Frontend System Design Interview
Vote

0% completed

​

Shipping Less JavaScript

In the browser lab, Basket's product list appeared after 2,883 ms when all of the app's JavaScript arrived as one file. When only the list's own code was sent first, the same list appeared after 866 ms. The page, the network and the phone were the same in both runs. Only the amount of code sent before the list changed.

The measurements ran in headless Chrome 150 on a desktop with an AMD Ryzen 7 5800X, with the CPU slowed four times to approximate a mid-range phone and the network set to Lighthouse's slow mobile profile.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content