Performance matters

Project Source Code

Get the project source code below, and follow along with the lesson material.

Download Project Source Code

To set up the project on your local machine, please follow the directions provided in the README.md file. If you run into any issues with running the project source code, then feel free to reach out to the author in the course's Discord channel.

  • |

Lesson Transcript

  • [00:00 - 00:11] So we have demonstrated a website that works, but a website that works is actually the bare acceptable minimum for a website. In real life, an e-commerce owner wants a website that brings revenue.

  • [00:12 - 00:25] And the thing is that performance and revenue, are highly correlated. There are multiple studies around like this one from Akamai that prove that a slow website will bring less conversion.

  • [00:26 - 00:31] I got some numbers with me. For instance, a three-second delay will make you lose half of your visitors.

  • [00:32 - 00:43] Walmart noticed that on the contrary, each second one increased conversion by two points. Google noticed that the average mobile web page takes 15 second to load.

  • [00:44 - 00:52] So that's a huge progression margin. And there are numerous academic and business research that goes in the same direction.

  • [00:53 - 01:02] A fast website brings revenue, a slow website, loses revenue. So we want to focus on performances for this website.

  • [01:03 - 01:08] We want it to load instantly. If I download the page, I get the content immediately.

  • [01:09 - 01:21] Here, I'm kind of cheating because, of course, the website is running locally on my computer, so there is no real network connection. But we will see that it is still possible to test performance locally.

  • [01:22 - 01:31] And we can show that this website is optimal in terms of CPU consumption and thus in terms of performances and loading speed.