DEV Community

Kaziu
Kaziu

Posted on

โฐ How to measure frontend performance?

๐Ÿ“• Chrome dev tools

on browser right click -> inspect.
maybe you have used already it before, it's useful to measure performance as well actually

1๏ธโƒฃ Setting disable cache

What is cache? I wrote about cache by banana


network

2๏ธโƒฃ Reload

ctrl(cmd on Mac) + r

3๏ธโƒฃ Check Network

inspect bottom

  • Finish
    How long it takes to show this page

  • DOMContentLoaded
    reading and parsing HTML file time (not CSS, images)

  • Load
    Finish loading time completely

  • Requests
    number of downloaded files

  • Transferred
    Sum of all downloaded files

โญ If transferred value is like dozens of MB or hundreds of MB, you should reduce files.

4๏ธโƒฃ Check server's speed

click waterfall of some file, then modal will be appeared
waterfall
TTBB(not PPAP) is important, it means Time To First Byte.
-> Time to get first Byte from server, so less is better.
-> large number of TTBB = server or Network is slow

(Here I omit explanations of other panels like Memory,Performance because it will be so complicated in your brain)

๐Ÿ“• PageSpeed Insight

๐Ÿคทโ€โ™€๏ธ client - Kaziu sensei, score of our website is 62 in PageSpeed Insight... 
could you do something?
๐Ÿ˜Ž me - Yes sir!
Enter fullscreen mode Exit fullscreen mode

Basically start of conversation with client is like that, so it's important what is PageSpeed Insight.

โ–ผ You can get score of performance
I will write solutions in other article
page speed insight

โ–ผ reasons
opportunity

๐Ÿ“• Web page test

it's like pagespeed insight, but differences are

  • Choose location and network status and so on

    -> measure on cloud environment

  • Video clip of problem part

    -> it's easy to get clearly which part should I fix

  • Share url of test result

    ->If you have client, it's easy to communicate

and more options exists, so I recommend you to use it ๐Ÿ‘

Top comments (0)