Jehl’s Law of Web Performance

Adam Fendrych reported that Scott Jehl said in his Web Expo talk that a website should load before you can say “Cumulative Layout Shift”. What does that mean in practice? We’re web performance specialists here, we work with measurements and numbers, so we need a more exact number. Numbers reduce ambiguity. To find out that […]


This content originally appeared on phpied.com and was authored by Stoyan

Adam Fendrych reported that Scott Jehl said in his Web Expo talk that a website should load before you can say "Cumulative Layout Shift".

screenshot of a tweet

What does that mean in practice?

We're web performance specialists here, we work with measurements and numbers, so we need a more exact number. Numbers reduce ambiguity. To find out that number we need to run the `say` command on a Unix/Mac computer and time the output file.

$ say -o cls.aiff "Cumulative Layout Shift"

Now we open the audio file in music editing software (I'm using Reaper) and observe the timing.
screenshot of a audio file opened in Reaper

One immutable magic number to rule them all

And here we have the answer. A website should load in 1.722 seconds or less. Whatever load means, it's up to you. But yeah, go make it happen!

A website should load before you can say "Cumulative Layout Shift", in other words in 1.722 seconds or less.


This content originally appeared on phpied.com and was authored by Stoyan


Print Share Comment Cite Upload Translate Updates
APA

Stoyan | Sciencx (2023-04-21T21:59:55+00:00) Jehl’s Law of Web Performance. Retrieved from https://www.scien.cx/2023/04/21/jehls-law-of-web-performance/

MLA
" » Jehl’s Law of Web Performance." Stoyan | Sciencx - Friday April 21, 2023, https://www.scien.cx/2023/04/21/jehls-law-of-web-performance/
HARVARD
Stoyan | Sciencx Friday April 21, 2023 » Jehl’s Law of Web Performance., viewed ,<https://www.scien.cx/2023/04/21/jehls-law-of-web-performance/>
VANCOUVER
Stoyan | Sciencx - » Jehl’s Law of Web Performance. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2023/04/21/jehls-law-of-web-performance/
CHICAGO
" » Jehl’s Law of Web Performance." Stoyan | Sciencx - Accessed . https://www.scien.cx/2023/04/21/jehls-law-of-web-performance/
IEEE
" » Jehl’s Law of Web Performance." Stoyan | Sciencx [Online]. Available: https://www.scien.cx/2023/04/21/jehls-law-of-web-performance/. [Accessed: ]
rf:citation
» Jehl’s Law of Web Performance | Stoyan | Sciencx | https://www.scien.cx/2023/04/21/jehls-law-of-web-performance/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.