As we build sites that are more heavily reliant on JavaScript, we sometimes pay for what we send down in ways that we can’t always easily see. In this talk, Addy explains how and why JavaScript is the most expensive resource your site uses today—especially on mobile and lower-end desktops.
Web developers should focus on optimizing JavaScript bundles by keeping them small to improve download speeds, especially on mobile devices. Small JavaScript bundles improve network transfer speeds, lower memory usage, and reduce CPU can be achieved by splitting bundles larger than 50-100 kB. Additionally, it’s crucial to enhance execution time by avoiding tasks that overly engage the main thread and by not using large inline scripts over 1 kB. Avoid creating Long Tasks that can keep the main UI thread busy and can push out how soon pages are interactive by users. These steps are vital as parse and compile costs have become faster than before.
He will also share tips for fixing JavaScript performance issues so everything loads quicker. A little discipline can help if you want your site to load and be interactive as soon as possible on mobile.
A few things that will be covered:
- What the dominant costs of heavy JavaScript are
- How median hardware plus heavy JavaScript can impact user-experience
- Tips and tricks for reducing the cost of JavaScript, reducing long-tasks and improving the Core Web Vitals metrics
- Things frameworks and browsers are doing to try reducing the cost of JavaScript by default.
- How new performance metrics can help you reason about where to optimize JavaScript to improve user interactions
PUBLICATION PERMISSIONS:
Original video was published with the Creative Commons Attribution license (reuse allowed). Link:
0 views
0
0
3 years ago 00:46:49 8
The Cost of Concordia
6 years ago 00:02:20 929
The Matrix low cost version
5 years ago 00:03:55 20
The Cost
4 years ago 00:17:20 13
Sandy Munro Attempts To Demystify The Absurdly Low Cost Of The Changli
12 years ago 00:05:02 54
The Cost ’2006’
5 years ago 00:02:36 18
THE COST OF LIVING | Trailer
6 years ago 00:02:35 154
’The True Cost’ - Official Trailer
2 years ago 00:34:36 17
The Cost Of JavaScript - 2023
11 years ago 00:04:01 30
DV8 The Cost of Living
13 years ago 00:04:04 29
Dividing The Line — The Cost Of Living
9 years ago 00:02:44 69
Never-Trust - No Matter The Cost
4 years ago 00:03:01 382
The Boys low cost version | Studio 188
5 years ago 00:05:16 17
the cost of poor quality
5 years ago 00:03:34 32
The Cost of the Crown - Mercedes Lackey
8 years ago 00:06:43 40
The high cost of free parking
4 years ago 00:26:35 92
The True Cost Of Free Work
11 years ago 00:09:32 17
Who Pays the Price? The Human Cost of Electronics
5 years ago 00:02:58 4
The Witcher low cost version | Studio 188
8 years ago 00:06:21 12
The Terrifying Cost of “Free” Websites
10 years ago 00:03:26 2.2K
Heavy is the Cost -- Ivypool & Hawkfrost
13 years ago 00:07:17 78
Bloody Harvest: The Real Cost of Fur
12 years ago 00:03:35 26
Yuko - The Cost of the Crown
9 years ago 00:04:05 39
Elsa - Cost of the Crown
4 years ago 00:07:28 68
Neverwinter - The Insane Cost Of Upgrading Collars !!