The State of the Web: Key Insights From the HTTP Almanac 2024

This ad is not shown to multipass and full ticket holders
React Summit US
React Summit US 2025
November 18 - 21, 2025
New York, US & Online
The biggest React conference in the US
Learn More
In partnership with Focus Reactive
Upcoming event
React Summit US 2025
React Summit US 2025
November 18 - 21, 2025. New York, US & Online
Learn more
Bookmark
Slides
Rate this content

We’ll explore the latest in web performance, examining how sites fare in speed and efficiency. Discover the impact of performance optimisations and the innovations driving the fastest web experiences today. From lazy loading to efficient rendering, we'll uncover what sets high-performing sites apart in the ever-evolving digital landscape.

We'll also turn our attention to the web’s environmental impact, discussing the growing awareness of its carbon footprint and the steps being taken toward more sustainable practices. Alongside this, we’ll delve into the adoption of cutting-edge technologies like HTTP/3, Progressive Web Apps (PWAs), and modern JavaScript frameworks. These advancements are reshaping web development and promising a more efficient, eco-friendly future. Join us to understand how these trends are driving both performance and sustainability in the web world.

This talk has been presented at React Day Berlin 2024, check out the latest edition of this React Conference.

FAQ

The React Berlin Meetup Halloween edition is an event hosted by a company in Berlin where participants can wear costumes. During one such event, the speaker wore a Gandalf costume.

Burak is a developer based in Berlin, originally from Turkey. He moved to Berlin four years ago and works at a company called Überall.

The Sustainability chapter focuses on analyzing and improving the environmental impact of web technologies. It includes statistics on page weight, unused CSS and JavaScript, green hosting, and image optimization.

The report found that, on average, websites are shipping 8 megabytes of data per page load, whereas the ideal maximum should be 1 megabyte. This is a significant increase from the optimal amount.

The report found that websites are shipping 225 kilobytes of unused CSS and 907 kilobytes of unused JavaScript. This has increased since 2022, where unused JavaScript was 645 kilobytes.

As of 2024, only 12% of websites use green hosting, a decrease from 13% in 2022.

Images make up more than 50% of the page weight, averaging 4.4 megabytes per page. They are responsible for about 70% of the carbon emissions of an average website.

The report suggests using modern image formats like AVIF and WebP, implementing lazy loading, and using the source set attribute for responsive images to reduce data transfer.

AI searches consume 30 times more energy than traditional searches. Limiting unnecessary AI queries can help reduce energy consumption and improve sustainability.

WebAlmanac is essentially the internet equivalent of Spotify Wrapped for 2024. It involves testing nearly 17 million webpages, processing 83 terabytes of data monthly, and releasing an annual report. Burak volunteered on this project, contributing to the Sustainability chapter.

Burak Güneli
Burak Güneli
30 min
13 Dec, 2024

Comments

Sign in or register to post your comment.
Video Summary and Transcription
Today's Talk focused on Almanac 2024, a report that examines web sustainability. The speaker discussed various aspects of web sustainability, including page weight, unused CSS and JavaScript, image optimization, text compression, caching, and the usage of AI. They emphasized the need to reduce data transfer and carbon emissions through practices like green hosting and the implementation of lazy loading, responsive images, and text compression. The speaker also highlighted the importance of individual action and collaboration in achieving a more sustainable web. They called for volunteers for the next edition of the report and encouraged engineers to adopt greener practices. Overall, the Talk provided valuable insights into the current state of web sustainability and offered recommendations for improvement.

1. Introduction to Almanac 2024

Short description:

Today I will be talking about Almanac 2024. I am Burak, a developer based in Berlin. I moved here four years ago and work in a company called Überall. I love cold weather. I have a toxic relationship with German and I'm trying to learn it.

Yeah, last time you saw me, I was in costume. So give me a bit of context. My company, we host React Berlin Meetup and we did the Halloween edition of it. And actually I had my Gandalf costume, but you saved the day because you sacrificed your lipstick so that people can have costumes, right? It was a nice, nice of you.

Hey everyone. Thanks for joining. Today I will be talking about Almanac 2024. First, can I ask how many of you know Almanac? Did you ever hear about it or are you going to get into it? Okay. Okay. Not much. Perfect. Yesterday.

So let me start about myself. I'm Burak. I'm a developer based in Berlin. I'm originally Turkish. I moved here four years ago. I've been here for four years. I work in a company called Überall and I love cold weather. It's a great match for me, the city. Here you can see me stupidly jumping in Admiralbrücke. If you're not from Berlin, I would recommend. It's a great place. It's a bit cold now, but still worth to see. I have a toxic relationship with German. I'm trying to learn German, but here on top you can see my Duolingo streak. I left my Duolingo streak. It was 643 days.

2. Webalmanak: Internet wrapped for 2024

Short description:

I left my Duolingo streak after 643 days. Now I'm in the expat level. I know a few German words. One tradition I like here is Wegbia, where you walk with a friend and a beer. Now let's dive into what I will talk about today: Webalmanak. It's like Spotify Wrapped for the internet in 2024. We test millions of webpages and process terabytes of data monthly. I've been volunteering for the 2024 edition.

I left my Duolingo streak. It was 643 days. Now I left it because I was procrastinating. Now I'm in the expat level. I just know like Genau, Mittkarte, Schönentag and some weird words from board games like Wachterin. It means guardian. Useless. I hope you won't need it anyways, like any of us.

Start with good wishes. And there is one tradition that I like here. It's Wegbia. It's basically the city is flat. It's kind of weird for me. I'm from Turkey. It's super hilly over there. You basically grab a beer, grab a friend and then you walk. It's a quite nice thing. It's an alternative therapy if you ask me.

And enough of me. Let's dive in what I will talk about today. So today I will be talking about Webalmanak. For the people who didn't hear about Webalmanak, it's basically... So all of us, like most of us got our Spotify wrapped, right? Like the best artists, best songs that you had. It's basically internet wrapped for 2024. And we do test nearly 17 million webpages. We process 83 terabytes of data monthly. And then at the end of the year, we release our report about each year. And 2024 edition just got released last month. And I've been volunteering for that project. I will be talking about this one.

3. Sustainability: Statistics and Recommendations

Short description:

I will be talking about the Sustainability chapter of the huge report. I was involved as an author and data analyst. Using BigQuery, I processed 5.2 billion records without being charged. I want to shout out to my team, as we won the best chapter award. Today, I will share statistics and recommendations on web sustainability.

So let me get into the chapter that I will be talking about. It's a huge report. It has like, I think 21 chapters. So I cannot talk about all of them in 20 minutes. It's kind of impossible.

But Sustainability chapter is the chapter that I got most involved. And I was an author and data analyst over there, according to the initial plan. I was going to be just author. I don't like SQL. I'm frontend engineer. It's a volunteer project, so I need to cover up some parts of it.

And here in this screenshot, you can see my anxiety, because I was using BigQuery. And I was doing some data processing over there. It's like 5.2 billion records. And I said, okay, I hope Google is not going to charge me, but HTTP archive. So far, I didn't get any invoice. So I'm happy about it.

I need to do a shout out to my team. I'm part of them. We are nine people. We have authors, data analysts, and editors. It's a great team. We wrote a huge chapter. And it got the best chapter award of the HTTP archive this year. And we will be talking about the web sustainable question a lot today. I will be giving you some statistics and some recommendations, how we can improve it. And let's dig in. We will start with the statistics. But before all of that, I will start with a disclaimer. I'm not a person to judge you, for sure.

4. Web Sustainability and Personal Impact

Short description:

I admit I'm not the most climate-friendly person, taking many flights and contributing to environmental issues. I had planned to fly anywhere and work remotely, but canceled due to a scam and my environmental concerns. I've met inspiring people who use eco-friendly practices. I will discuss web sustainability.

And so I'm not the person who is the most climate friendly. I'm doing lots of crimes in terms of climate. I'm taking lots of flights. This is... You can see my fake PNG flying in a plane. And basically, I was... There was a package called with air all you can fly. I don't know if you heard about it. It released two or three months ago. I bought it. Because I was planning... I will get my computer. I will take my backpack and I will fly anywhere. And I will be enjoying my life working from there. And then I canceled it. Because they changed the terms. It was kind of a scam. But I need to be honest with you. I canceled it because of my environmental concerns. We will talk honest today. I canceled it because it was a scam.

And I met with thousands of people. Like great people. I met with some of them. Some are using Fairphone. Some of them are not flying. Some of them are just using second hand items to reduce their carbon emissions. So I'm not the person who can even reach to their level. But yeah. I will be talking about the sustainability of the web.

5. Page Weight and Data Limitations

Short description:

I'm excited about this topic. Let's start with page weight. Our data analysis shows that on average, websites are sending 8 megabytes of data to clients when they open a website, which is much higher than the ideal limit of 500 kilobytes. We need to reduce it.

This is my interest. Yeah. I hope Vizier is not a sponsor. Because I just called them. Scam. Grammarly, I saw it's great. Porsche. It's amazing. Okay. Sorry. If it is, it's my first and last React Day Berlin talk. Enjoy it. I hope not.

Okay. Let's start with page weight. According to our data analysis, we found out in... Okay. Let me actually give you an introduction about these slides because it's a bit complicated. In most of the slides, in the left side, you will see a 2024 chart and 2022 chart at the right side. So this chart is basically showing the desktop and mobile statistics. And there is a percentile over there. So the 10th percentile is the best performing websites. 19th percentile is the average of all of the websites that we process. Like 17 million. Nearly 17 million of websites. And I will be mostly talking about the 19th percentile because I will be talking about the average.

And according to this year's results, averagely we are shipping 8 megabytes of data to the client's computer or device whenever they open our website. And it's huge. It's definitely huge. According to our researches, ideally it should be 500 kilobytes and the maximum amount that we can accept should be 1 megabyte.

6. Unused CSS and JavaScript

Short description:

We are sending 8 times more data than the maximum limit, contributing to increased carbon emissions. Despite advancements in CSS and JavaScript, we are still shipping significant amounts of unused code. This practice needs to be addressed to improve web sustainability.

And now we are doing 8 times more than the maximum amount which is quite bad. And there's also... There's just one good thing about it. We just decreased our carbon emission of each page load by 1 megabyte. It was 9 megabytes before. It decreased to 8 megabytes. But in two years, the environment... It's like environmental knowledge is increasing and we are not following it up. We are in a really bad speed. We should speed it up more and we should decrease our page rate.

But okay. Let's see the CSS stats. So we... Like CSS is easy, right? It shouldn't be producing some carbon emission or something like that. It should be great because we have frameworks and stuff. But no, we are... As you can see on the left side, unused CSS, we are shipping 225 kilobytes of unused CSS. And if you compare it to 8 megabytes, okay, it's not that much. It's very small. Maybe it's not the first thing that we need to kill and we need to like tackle. There might be like bigger problems. It just increased 4 kilobytes more. It didn't decrease. We are shipping more unused CSS. It's not the worst, but it's not a good one.

Maybe we can check JavaScript because we have all the tools, we are advanced, right? We should be like in a good state. No. We are shipping 907 kilobytes of unused JavaScript, which is actually the upper limit that we set. It should be at most one megabyte and we are close to that limit that we recommend. And there is one concerning thing.

7. Unused JavaScript Increase

Short description:

In 2022, best performing websites had 0 kilobytes of unused JavaScript, but in 2024, even they are shipping unused JavaScript. This is a significant concern that needs to be addressed.

When you see the 2022 data, it was 645 kilobytes. Like we increased JavaScript for like 300 kilobytes, which is not cool. And there's even one worse thing about it. When you check the 2022 data, the best website, best performing websites, they were shipping 0 kilobytes of unused JavaScript. Now this year, 2024, they even start to ship unused JavaScript kilobytes, which is super, super concerning. And it's something that we should fix.

8. Greenhosting and Image Rate

Short description:

The usage of greenhosting has decreased, with only 12% of websites using it in 2024 compared to 13% in 2022. The image rate is a concerning statistic, with images accounting for more than 50% of the page weight and around 70% of the emissions in the average website. JavaScript emissions may be higher than calculated due to the energy usage of local devices.

I don't know. Let's continue with the statistics. The greenhosting. Okay. We have unused JavaScript, we have unused CSS, but most probably we are using greenhosting, right? Like we are balancing it out, kind of like being concerned about sustainability. No, we are not. As you can see here, in the old part in 2024, the desktop is not visible, but I wrote it on top, just 12% of the websites are using greenhosting. And even got decreased from 2022, it was 13% before.

There is one... So in our report, we don't have such a saying about this one, but if you ask me, maybe AI can have some kind of like, its own effect on it. I will come to that part at some point. But yeah, greenhosting, it got decreased. So far, we don't have much good statistics. Let's see the image rate. In my opinion, it's the worst statistics that we have.

So in the right side, let's start with this graph. Here you can see in average, we are fetching that amount of kilobytes by person, by person type, by type of images, the blue ones, the sky blue ones. These are just kilobytes for images that we fetch. And this is more than 50% of the page rate that we are shipping, which is huge. It's like 4.4 megabytes of data that we are shipping in those 8 megabytes average. It's just images. And on the right side, you can see the, you can see the emissions that we calculate according to the file types. And the green one is images. The blue one, or like the dark gray one, that's JavaScript. And you can see in the average, in the average website, like 90% percentile, it's around like 70% of the emissions being caused by images. I need to give one note about this one. So here, you are seeing our emission calculation by type. But there is one thing. JavaScript is most probably emitting a bit more because our model that we calculate, carbon emissions, it's not, it cannot add the parameter of usage of the CPU or like the battery, like the energy that you use in your local device. Most probably it's a bit more, but still, images are huge.

9. Image Formats, Lazy Loading, and Responsive Images

Short description:

The usage of aviv and webpy image formats has increased, while JPEG usage has decreased. Lazy loading is implemented on 35% of images, but there is room for improvement. 42% of webpages use source set for responsive images, reducing unnecessary data transfer.

It's not acceptable. We should decrease it. But maybe we are using good image formats, right? On the left side, we can see some good data, finally. So I don't know if you heard about aviv or webpy. These are like the new two formats that, which are more lower size, and they are better to use because they are, they have less size in, after all. But aviv increased 386%, which is cool because it's the most compressed and it's the lowest size of images. But it's a bit misleading because it was, in 2022, it was 0.3% usage. Now it's just 1.4% usage. Yeah, some people are discovering it. Webpy is increasing by 34%, which is super cool, actually. And JPEG decreased 20%. This is not super bad.

We have some progress here, at least, let's say. But we should be focusing more on aviv and webpy because they are, right now, being supported broadly, and even if they are not being supported, there are some ways to use them and fall back if we cannot do it. But maybe we are good at image optimization, so let's see.

We have the lazy loading statistics on the left side and 35% of the images that we have on those webpages, they have lazy loading. It's not a bad statistics, but personally, I would prefer it to be like, it speed up more heavily because it's not a hard thing. It's just like, generally, it's very easy implementation. It's just like an attribute and it loads lazily. If it's not in a viewport, it won't be even loaded. I think that's just something that it's a low-hanging fruit. We can definitely pick that up and decrease our page weight. And on the responsive image types, it's actually, this is a good graph if you ask me. Usage of source set we are seeing here. 42% of the webpages are using source set. Source set, if you don't know it, basically, let's say that you have a website, it's responsive. The desktop one is like, you are pushing a higher resolution photo image to the website because it will be huge and you need a higher resolution. It's understandable, but if you don't use source set or like an alternative image for that one for client sizes, you are also shipping a huge resolution size image to mobile clients and it's a waste. If you use a source set, basically, it will be just like switching to the low resolution image and it will be reducing some data transfer for you, which is quite cool. I think it's 42% is not bad, but maybe we can increase it a bit more in the next year.

10. Text Compression, Caching, and AI Usage

Short description:

Text compression is crucial for reducing page weight, with 53% of files not utilizing compression. Caching is widely implemented, with only 25% of pages not using it. However, caching should be further optimized to reach an ideal level. AI searches consume 30 times more energy than traditional searches, suggesting the need to reconsider reliance on AI for small queries.

Text compression, so if you ask me, this is the lowest thing hanging for it. It's super easy and we are missing 53% of the files. 53% of the files are not using text compression, which is, I think it's like the first thing that we should do. It's the start point of solving this page weight issue because basically, let's say that I'm sending my phone to my grandma. I'm grabbing a huge package, I'm going to Deutsche Post, DHL, I'm putting my phone inside of it and I just ship that huge package. It's just going with the air, it's just like there's a small phone inside of it. We don't need to ship a huge package, we can just compress it and we can ship it that way. It will save a lot of data transfer for us, up to 80%.

Caching. Caching is actually in good statistics, if you ask me. 25% of the pages are not using caching. Even if they are not using caching, at some level they are being cached without their control. If they don't specifically say that, no, there's no cache. 25% is not bad. You can say that maybe 25% is in purpose not caching at all, but I don't think 25% is in purpose not to cache it at all, maybe like 10%. It would be better to have it more, it's really good statistics if you ask me, but still caching is not something new. It's been there for ages, so maybe it would be better to have that to have it in the level of ideal level. Yeah, it's not a bad statistics.

And lastly, AI. So I'm not against AI, basically, but I need to tell this. In compared to traditional searches that you are doing, AI searches, according to research, it's consuming 30 times more energy. So maybe we should stop asking small questions to AI and ask it to Google, just like a traditional way, or other platforms, Bing, other ones, I don't know, whichever you prefer. And I like this, we had this phrase before, the juniors, interns, people were coming to us, they were saying, I have a stupid question. And at that point, it's like, they feel weak a bit, but it's the point that they have something that they cannot resolve in their minds. But once you resolve it, they are going to grow a lot. And now nobody's coming with, I have a stupid question phrase. Everybody's going to AI, unfortunately. And I really miss that phrase, I think it was super lovely. Please return back that question if you're a junior or an intern, I'm not going to judge. If the people who you ask will judge, come to me.

11. Image Optimizations and Website Performance

Short description:

I will answer questions related to front end, and someone else will handle back end queries. Image optimizations using AWIF and WebP, with fallbacks to JPEG and PNG, can significantly reduce data usage. Utilizing the picture tag, source set, and lazy loading will further optimize the website.

I will answer in front end, and if you're asking back end, I will find someone, no worries.

Okay, I need to be fast. Enough negativity, I don't have too much. Okay, let's go.

Image optimizations, I set AWIF and WebP. You can see here the support of the browsers, it's being widely supported. In Internet Explorer, it's not being supported, both of them. In Safari, in a very old version, AWIF is not being supported. But still, I know Internet Explorer is not being used a lot. I don't say ignore them, it will be an accessibility issue. Maybe some old people need it, we cannot kick them out. They also have right to use the internet. But still, you can use the picture tag. Picture tag is basically a tag. If you don't know, you can have some fallbacks. You can start with AWIF, you can start with WebP. And if those are not being supported, then fall back to JPEG and PNG. And then you will be saving a lot of data. Also, please your source set. Source set is like, it will decrease mobile data transfer a lot. And lazy load, it will help us a lot. These are the ways to fix it.

12. Text Compression and Green Hosting

Short description:

Text compression using Gzip can reduce page weight by up to 80%, saving kilobytes of transfer and company costs. Detecting and removing unused JavaScript, CSS, and other files can be done using Chrome DevTools. Utilizing tree shaking, code splitting, and loading smaller chunks when necessary can further optimize data usage. Defining green hosting services is challenging due to various parameters.

Text compression, it's super straightforward. I don't know the third option, it's in our report before. I don't want to talk about it without knowledge. But Gzip and Broadly. With Gzip, you can basically have like potentially up to 80% of compression, which is a super low hanging fruit. And you can grab it and you can decrease your page weight a lot. You will be saving more kilobytes of transfer. And plus, you will be reducing the costs of your company. You will get a raise or something.

Page weight. See, there's a video here. I took this video from Amazon two, three days ago. And you can see the coverage report of it. It's like desktop page, like the main page of Amazon. In the bottom part, when we go to the coverage, you can see that I think it was like 6.4 megabytes of unused JavaScript or unused files, file transfer. Here, you can see 6.3 megabytes. It's gone. But it's over there. You will see. Yeah.

So, it's not easy, I know. It's not easy to remove your unused JavaScript or CSS or other file things, but it's easy to detect. It's just one Chrome DevTools feature and then you detect it. And then you can use tree shaking. You can start code splitting. You can make it like smaller chunks. And with the smaller chunks, you will be saving a lot of data if you load them when they are necessary. Green hosting, it's so hard to define some of those hosting... So it's hard to define which hosting service is green, because there are lots of parameters.

13. Green Hosting and Carbon Emissions

Short description:

Defining green hosting services is challenging due to various parameters. Switching to green hosting and using CDNs can reduce energy consumption. Caching can be utilized for pages that don't require frequent fetching. The carbon emissions per page have increased from 1.29 to 1.47 grams of carbon dioxide, indicating the need for reduction.

So it's hard to define which hosting service is green because there are lots of parameters. If you are interested in it, you should check out this article that I shared on the right side. If you want a quick solution, you can use the third bullet option. It's like... There is a link over there. Over there. If you go there, you can find the green hosting services according to the countries because not every green hosting service... Not every hosting service is green in every country.

You can try to switch to green hosting. It's also a low hanging fruit. And plus, you can try to use more CDN because CDNs are like geographically placed, like better placed packages, data that you can grab. And it will be easier for you to not request something from the United States. If you use CDN, maybe it will be a super close destination. It will travel less. It will consume less energy, let's say.

Caching. I don't need to talk about caching. All of us know it. It's over there for ages. Maybe if you don't have any strict caching policy for some strict pages, if you don't need to fetch it all the time, maybe you can do caching for those ones. Last but not least. The final statistics. This is the... According to our report, we are getting this carbon emission. For each page in 2024, we are generating on average 1.47% of... 1.47 grams of carbon dioxide. And it went up unfortunately. In 2022, it was 1.29. It went up unfortunately. We should decrease it.

14. Following up on Initiatives and Emissions

Short description:

We should follow up with other environmental-friendly initiatives and calculate our carbon footprint. Decreasing image size and being mindful of running queries on huge data sets can help reduce emissions. Our monthly emissions are equivalent to a standard old gasoline car traveling three times around the world or 323 smartphones' emissions during manufacturing. While it's not the worst, we are actively working to decrease our emissions. Feel free to ask me anything, even about Turkish cuisine.

We should follow up with the other initiatives of environmental friendly initiatives. And I need to share this also. We also calculated our carbon footprint as WebAlmanac because I'm just... I cannot be just judging people. You need to decrease your image size and I should also put some sticks to our group of people, right? According to our researches, we are doing web crawl monthly. We are getting a huge data. It's in Google BigQuery. You can go there and you can basically run your queries. Just beware. If you run your queries in huge data sets, you will get a huge remorse. Just beware.

According to our crawlings, we are just generating monthly a standard old gasoline car to travel three times around the world. Or like 323 smartphones equal to 323 smartphones carbon emission when you manufacture them. It's our emission as WebAlmanac or HTTP archive. And we are trying to reduce it. It's not good. It should be less, but it's not the worst. But definitely we are working on it to reduce it.

Finally, it's the end. Here you can find my socials. Ask me anything. Ask me stupid questions. Ask me. I'm Turkish. You can ask me where should I eat doner in. Here. I will guide you. Even I will guide you with the vegan ones because I was pescetarian for a while. I didn't eat meat. So ask me anything.

QnA

Call for Collaboration

Short description:

We need more people to help with the upcoming 2025 edition of the WebAlmanac. Join us and translate the WebAlmanac to your native language to make a significant contribution.

Here we need a lot of people. Right now we have 20 chapters, I think, but we couldn't release some of the chapters because we don't have enough people. We couldn't assign any people to those chapters. Please help us in 2025 edition. Even if it's too far away, if you want to start right away right there, you can join us and you can start translating the WebAlmanac to your native language. It will help us a lot.

And there are some additional links. Sorry for the extra time. Right. Thank you very much Burak. That was an amazing talk about sustainability.

Web Frameworks and Sustainability

Short description:

Is there any data on the web framework usage and sustainability features in React? We have data on CMS and e-commerce websites, but not sure about React as it's a recent release. Let's meet after the talk to explore it further.

So among those websites being analyzed, is there any comparison about what web framework they use? Does React have any features to improve sustainability? So I don't know if we have specific data for React. We have data for CMS and e-commerce websites like Shopify. If you use Next.js, how much does it produce? I'm not sure if you have for React because it's a huge chapter and it just got released one month ago. I didn't have a chance to read all of it. I'm sorry, I don't want to give a false answer to that, but maybe after this talk we can meet and check it out together.

Optimizing GPT and Shifting Focus

Short description:

Couldn't GPT cage stupid questions and will they optimize? They are considering working on nuclear power, which could be a low-emission alternative. Shifting focus to a more sustainable model involves showing the image percentage of page weight to decision-makers and collaborating with designers and UX engineers. Knowing which JavaScript is unused can be determined from the coverage report in DevTools.

Definitely, thank you. So next question, couldn't GPT also cage stupid questions? Do you think they will work on optimizing? I think, yeah, eventually definitely they will work on optimizing. I heard something like this. They are planning to be working on nuclear power, which will be a huge improvement because I don't know, nuclear power, it's in debate in my opinion. I think it's super green option to produce energy, but I don't want to offend anyone. If they switch to nuclear power, it will be super super low emission. I would switch from Google to ChatGPT right away. Yeah, it will be fixed. I'm just saying for now, just be careful what you're doing. Don't ask like a food recipe. You can find it from Google or YouTube. Google, let's say Google is the best or the other directives. I don't know. Yeah, yeah. All right. Thank you. Next question.

We have, what can we do to shift the focus from heavily performance UI and UX oriented to more sustainable model? So if you're working in a company, basically the first thing that you should do is show the average image percentage of page weight to the persons who are paying the hosting prices. You just show them, okay, more than 50% of our prices are going to images. We should talk to designers or whoever is responsible from it, the UX engineers and we should decrease it. It will save us some money right now. I think that's the best approach to do that. You will definitely gain some enemies from designer team and UX team, but maybe it's worth it. Probably. Maybe it's worth it. Maybe it's worth it.

And then we have, how do you know what JavaScript is used or unused? How do we know? Yeah. Basically, I showed the, like it's not that different. I showed the coverage report from the DevTools. You can even find it for your website or any website.

Identifying Unused JavaScript and CSS

Short description:

Unused JavaScript files can be identified using DevTools. Unused CSS can contribute to carbon emissions when multiplied by the number of website clicks. Consider the data transfer, energy wasted, and various parameters involved. Unused CSS is a waste and emits carbon. Moving to a green application requires individual action.

You just go to DevTools. You say, check the coverage and then you just find out the JavaScript files which are not, which have unused bytes. And yeah, that's the way, easy way for the web almanac data crawl. I didn't work on that, like data crawl team. I just worked on writing some SQL queries to crawl data. So I'm not the person to ask, but if you find me, I will contact you some people who are from the main team of data crawling. Yeah. Thank you.

We have another one. How does unused CSS have an effect on carbon emission? So think about this way. Let's say Amazon has 200 kilobytes of unused CSS. Let's say, I don't know. We had this video. We can check it actually, but let's say 200 kilobytes. Amazon is getting billions of clicks, right? So you are basically multiplying 200 kilobytes with billions. And 200 kilobytes with billions, when you multiply, it's a huge amount of data transfer and it's a huge amount of energy. It depends on a lot of stuff. It depends on which country you are. It depends on the grid intensity, how much energy you're wasting while transferring some data through cables. It has lots of parameters. But basically at the end, in average, according to our latest calculations, a website has 200 kilobytes. And if you're multiplying it with billions, you're emitting lots of carbon, unfortunately, because it's not being used. If it was being used, okay, then emit, because maybe it's on purpose. It solves something, maybe. But if it's unused, it's a waste. Thank you.

We have time for one more question. Is there any tooling that can support moving to a green application? Oh. You are the tool. You are the- You are the tool.

Engineers and Green Practices

Short description:

As engineers, we have the power to move towards greener practices. Switching to green hosting is one step, but reducing image size is also crucial. We often question the sustainability of our code. Thank you for your questions, and feel free to ask more during the Q&A session.

We are the engineers, right? We are the engineers. We are the tool to move to greener. So you can basically switch to green hosting, okay. But it's just one thing to do. You need to also decrease the image size. Yeah, we are the tool. There is no tool. Or maybe as tools, we can build a tool. But I think it's too detailed to do that. I think it will be better for you to do that. Okay.

Yeah. We as developers, we often ask, is our code clean, sustainable? I know, not sustainable. Most of the time, not. And that is a very interesting topic to look into. Thank you very much for your answer. Thank you for your questions. And if you have more questions, he will be available at his Q&A spot. And for the folks at the distance, you can still ask questions on Discord and you will be answering them later. Sure. For sure. Thank you very much.

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

A Guide to React Rendering Behavior
React Advanced 2022React Advanced 2022
25 min
A Guide to React Rendering Behavior
Top Content
This transcription provides a brief guide to React rendering behavior. It explains the process of rendering, comparing new and old elements, and the importance of pure rendering without side effects. It also covers topics such as batching and double rendering, optimizing rendering and using context and Redux in React. Overall, it offers valuable insights for developers looking to understand and optimize React rendering.
Speeding Up Your React App With Less JavaScript
React Summit 2023React Summit 2023
32 min
Speeding Up Your React App With Less JavaScript
Top Content
Watch video: Speeding Up Your React App With Less JavaScript
Mishko, the creator of Angular and AngularJS, discusses the challenges of website performance and JavaScript hydration. He explains the differences between client-side and server-side rendering and introduces Quik as a solution for efficient component hydration. Mishko demonstrates examples of state management and intercommunication using Quik. He highlights the performance benefits of using Quik with React and emphasizes the importance of reducing JavaScript size for better performance. Finally, he mentions the use of QUIC in both MPA and SPA applications for improved startup performance.
React Concurrency, Explained
React Summit 2023React Summit 2023
23 min
React Concurrency, Explained
Top Content
Watch video: React Concurrency, Explained
React 18's concurrent rendering, specifically the useTransition hook, optimizes app performance by allowing non-urgent updates to be processed without freezing the UI. However, there are drawbacks such as longer processing time for non-urgent updates and increased CPU usage. The useTransition hook works similarly to throttling or bouncing, making it useful for addressing performance issues caused by multiple small components. Libraries like React Query may require the use of alternative APIs to handle urgent and non-urgent updates effectively.
How React Compiler Performs on Real Code
React Advanced 2024React Advanced 2024
31 min
How React Compiler Performs on Real Code
Top Content
I'm Nadia, a developer experienced in performance, re-renders, and React. The React team released the React compiler, which eliminates the need for memoization. The compiler optimizes code by automatically memoizing components, props, and hook dependencies. It shows promise in managing changing references and improving performance. Real app testing and synthetic examples have been used to evaluate its effectiveness. The impact on initial load performance is minimal, but further investigation is needed for interactions performance. The React query library simplifies data fetching and caching. The compiler has limitations and may not catch every re-render, especially with external libraries. Enabling the compiler can improve performance but manual memorization is still necessary for optimal results. There are risks of overreliance and messy code, but the compiler can be used file by file or folder by folder with thorough testing. Practice makes incredible cats. Thank you, Nadia!
Optimizing HTML5 Games: 10 Years of Learnings
JS GameDev Summit 2022JS GameDev Summit 2022
33 min
Optimizing HTML5 Games: 10 Years of Learnings
Top Content
Watch video: Optimizing HTML5 Games: 10 Years of Learnings
PlayCanvas is an open-source game engine used by game developers worldwide. Optimization is crucial for HTML5 games, focusing on load times and frame rate. Texture and mesh optimization can significantly reduce download sizes. GLTF and GLB formats offer smaller file sizes and faster parsing times. Compressing game resources and using efficient file formats can improve load times. Framerate optimization and resolution scaling are important for better performance. Managing draw calls and using batching techniques can optimize performance. Browser DevTools, such as Chrome and Firefox, are useful for debugging and profiling. Detecting device performance and optimizing based on specific devices can improve game performance. Apple is making progress with WebGPU implementation. HTML5 games can be shipped to the App Store using Cordova.
The Future of Performance Tooling
JSNation 2022JSNation 2022
21 min
The Future of Performance Tooling
Top Content
Today's Talk discusses the future of performance tooling, focusing on user-centric, actionable, and contextual approaches. The introduction highlights Adi Osmani's expertise in performance tools and his passion for DevTools features. The Talk explores the integration of user flows into DevTools and Lighthouse, enabling performance measurement and optimization. It also showcases the import/export feature for user flows and the collaboration potential with Lighthouse. The Talk further delves into the use of flows with other tools like web page test and Cypress, offering cross-browser testing capabilities. The actionable aspect emphasizes the importance of metrics like Interaction to Next Paint and Total Blocking Time, as well as the improvements in Lighthouse and performance debugging tools. Lastly, the Talk emphasizes the iterative nature of performance improvement and the user-centric, actionable, and contextual future of performance tooling.

Workshops on related topic

React Performance Debugging Masterclass
React Summit 2023React Summit 2023
170 min
React Performance Debugging Masterclass
Top Content
Featured Workshop
Ivan Akulov
Ivan Akulov
Ivan’s first attempts at performance debugging were chaotic. He would see a slow interaction, try a random optimization, see that it didn't help, and keep trying other optimizations until he found the right one (or gave up).
Back then, Ivan didn’t know how to use performance devtools well. He would do a recording in Chrome DevTools or React Profiler, poke around it, try clicking random things, and then close it in frustration a few minutes later. Now, Ivan knows exactly where and what to look for. And in this workshop, Ivan will teach you that too.
Here’s how this is going to work. We’ll take a slow app → debug it (using tools like Chrome DevTools, React Profiler, and why-did-you-render) → pinpoint the bottleneck → and then repeat, several times more. We won’t talk about the solutions (in 90% of the cases, it’s just the ol’ regular useMemo() or memo()). But we’ll talk about everything that comes before – and learn how to analyze any React performance problem, step by step.
(Note: This workshop is best suited for engineers who are already familiar with how useMemo() and memo() work – but want to get better at using the performance tools around React. Also, we’ll be covering interaction performance, not load speed, so you won’t hear a word about Lighthouse 🤐)
Next.js 13: Data Fetching Strategies
React Day Berlin 2022React Day Berlin 2022
53 min
Next.js 13: Data Fetching Strategies
Top Content
Workshop
Alice De Mauro
Alice De Mauro
- Introduction- Prerequisites for the workshop- Fetching strategies: fundamentals- Fetching strategies – hands-on: fetch API, cache (static VS dynamic), revalidate, suspense (parallel data fetching)- Test your build and serve it on Vercel- Future: Server components VS Client components- Workshop easter egg (unrelated to the topic, calling out accessibility)- Wrapping up
React Performance Debugging
React Advanced 2023React Advanced 2023
148 min
React Performance Debugging
Workshop
Ivan Akulov
Ivan Akulov
Ivan’s first attempts at performance debugging were chaotic. He would see a slow interaction, try a random optimization, see that it didn't help, and keep trying other optimizations until he found the right one (or gave up).
Back then, Ivan didn’t know how to use performance devtools well. He would do a recording in Chrome DevTools or React Profiler, poke around it, try clicking random things, and then close it in frustration a few minutes later. Now, Ivan knows exactly where and what to look for. And in this workshop, Ivan will teach you that too.
Here’s how this is going to work. We’ll take a slow app → debug it (using tools like Chrome DevTools, React Profiler, and why-did-you-render) → pinpoint the bottleneck → and then repeat, several times more. We won’t talk about the solutions (in 90% of the cases, it’s just the ol’ regular useMemo() or memo()). But we’ll talk about everything that comes before – and learn how to analyze any React performance problem, step by step.
(Note: This workshop is best suited for engineers who are already familiar with how useMemo() and memo() work – but want to get better at using the performance tools around React. Also, we’ll be covering interaction performance, not load speed, so you won’t hear a word about Lighthouse 🤐)
Building WebApps That Light Up the Internet with QwikCity
JSNation 2023JSNation 2023
170 min
Building WebApps That Light Up the Internet with QwikCity
WorkshopFree
Miško Hevery
Miško Hevery
Building instant-on web applications at scale have been elusive. Real-world sites need tracking, analytics, and complex user interfaces and interactions. We always start with the best intentions but end up with a less-than-ideal site.
QwikCity is a new meta-framework that allows you to build large-scale applications with constant startup-up performance. We will look at how to build a QwikCity application and what makes it unique. The workshop will show you how to set up a QwikCitp project. How routing works with layout. The demo application will fetch data and present it to the user in an editable form. And finally, how one can use authentication. All of the basic parts for any large-scale applications.
Along the way, we will also look at what makes Qwik unique, and how resumability enables constant startup performance no matter the application complexity.
High-performance Next.js
React Summit 2022React Summit 2022
50 min
High-performance Next.js
Workshop
Michele Riva
Michele Riva
Next.js is a compelling framework that makes many tasks effortless by providing many out-of-the-box solutions. But as soon as our app needs to scale, it is essential to maintain high performance without compromising maintenance and server costs. In this workshop, we will see how to analyze Next.js performances, resources usage, how to scale it, and how to make the right decisions while writing the application architecture.
Maximize App Performance by Optimizing Web Fonts
Vue.js London 2023Vue.js London 2023
49 min
Maximize App Performance by Optimizing Web Fonts
WorkshopFree
Lazar Nikolov
Lazar Nikolov
You've just landed on a web page and you try to click a certain element, but just before you do, an ad loads on top of it and you end up clicking that thing instead.
That…that’s a layout shift. Everyone, developers and users alike, know that layout shifts are bad. And the later they happen, the more disruptive they are to users. In this workshop we're going to look into how web fonts cause layout shifts and explore a few strategies of loading web fonts without causing big layout shifts.
Table of Contents:What’s CLS and how it’s calculated?How fonts can cause CLS?Font loading strategies for minimizing CLSRecap and conclusion