What we're gonna do today is look at some data, and specifically we're gonna look at data with regards to JavaScript, and we're gonna see how and where JavaScript factors in to the carbon footprint conversation.
All right, let's go. Now, just a little heads up, everything that... All the data that I'm gonna share today is really on mobile, and I bring this up all the time because society has pretty much told us that we are on mobile pretty much all the time. So, a lot of the data that I'm sharing today is really with respect to mobile.
So, let's go. So, let's look at the page weight at the 75th percentile. It's just pretty much 4 megabytes. Alright, little big size, it's on the big side, but it's really there to start to paint the picture. Now, if we were to look at the carbon emissions at said percentile P75, we're looking at 1.38 grams of CO2 at the 75th percentile. So, now we can start to see that, okay, 4 megabyte page, 1.38. Alright, we kind of see what's going on.
Now, at the 75th percentile, again, JavaScript is being sent down the wire at 857 kilobytes. Alright, almost a meg of JavaScript at the 75th percentile. At the 90th percentile, we are sending well over a meg. In fact, we're sending 1,367 kilobytes. By the way, these stats are coming out of the HP archive. Fantastic trove of data that you should be reading, by the way, but we can now start to see the amount of JavaScript that we're sending down the wire.
Now, another important conversation is the fact that we can see unused JavaScript, as well, going down the wire. So, at the 75th percentile, 40% of the JavaScript down the wire is actually unused. Incredible. So, to follow that up, at the 90th percentile, we're seeing 44% of JavaScript going down the wire being unused. Again, what does that mean? We're sending it down the wire. We're parsing it, but it's sitting there with nothing to do. So, we're looking at wasteful data. In fact, at the 90th percentile, we are seeing more unused JavaScript than JavaScript coming down the wire at the 50th percentile. All right. So, once again, I'm sort of painting this picture that there's a lot of unused JavaScript going down the ... Coming down the wire on top of the fact that we're sending a lot of JavaScript down the wire, period. And believe me, there's much more.
Comments