Improving Load Performance - Chrome DevTools 101

Поділитися
Вставка
  • Опубліковано 18 жов 2024
  • This tutorial shows you how to use Chrome DevTools to find ways to make your pages load faster.
    Using Tony the Cat’s site, Kayce shows you how to audit a page with the Audits panel, use the Audits panel report to find ways to improve your page speed, experiment by adding one change at a time, and then measure each change to make sure that each is actually improving your speed. You can use this workflow to improve the speed of any page.
    This tutorial covers some of the most common causes of slow site speed, including lack of text compression, large images, render-blocking resources, and too much JavaScript.
    Optimizing web speed, tutorial → bit.ly/2LemRYa
    Experiment with Tony’s site → glitch.com/edi...
    Performance Analysis Reference → bit.ly/2o8N1OQ
    Watch the last episode on debugging JavaScript → bit.ly/2PyxXGL
    Subscribe to the Chrome Developers channel → bit.ly/ChromeDevs1

КОМЕНТАРІ • 205

  • @lucbian
    @lucbian Рік тому +25

    Anyone watching this in 2022, the audit tab is now called "Lighthouse" on Chrome. You're welcome.

  • @Jespertheend2
    @Jespertheend2 6 років тому +334

    The key thing to remember is to not add bitcoin mining functionality on page load lol

    • @_akuma06
      @_akuma06 6 років тому +29

      Yes, async it :p

    • @wt030
      @wt030 6 років тому +3

      And to change webpack env to prod, lol

    • @andrewfong101
      @andrewfong101 6 років тому +8

      Put the bitcoin mining operation into a web worker instead lul

    • @germanhealthbeautyproducts3433
      @germanhealthbeautyproducts3433 4 роки тому

      :))

    • @pauldev8967
      @pauldev8967 3 роки тому

      What if I want myBitcoin to run so that I could gain money? Use async script running in worker😅💲

  • @KanagawaMarcos
    @KanagawaMarcos 6 років тому +22

    This was the best video to introduce me to learn basics of performance of web. Thank you, I was looking for something like that.

  • @10Web
    @10Web 3 роки тому +8

    This is really an easy tutorial. Simple and not overwhelming.

  • @maximilian.R
    @maximilian.R 5 років тому +2

    Thank you!!! Holly molly! I didn't think I was going to make it through this video with its instructions. A great instructor will make it a breeze! Gee! Can't believe I made it through all the scripting. Thank you! The score changed from 0 to 100! LOL Unreal! I am an appraiser and have to load tens , or hundreds, of property listings sometimes, to complete analyses in Excel. It was loading too slow. Now, it made a huge difference. Thanks, again!

  • @mohammadkamruzzaman4154
    @mohammadkamruzzaman4154 Рік тому +1

    One of the best tutorial I found online for improving website performance. Keep it up.

  • @michaelparkernorton4841
    @michaelparkernorton4841 Рік тому +4

    So I just completed this. Things have changed a bit over the last 5 years. Interestingly it starts at a performance of 45 and went down when I made changes for the first 2-3 exercises lol. By the end though it was up to 81. Not quite 94. It was cool learning about the optimization process.

    • @imanekhiati9004
      @imanekhiati9004 9 місяців тому

      How did you add your domain in this editor?

  • @AndrewRusinas
    @AndrewRusinas 2 роки тому +1

    We need whole series about this 🥺

  • @travelmoustache
    @travelmoustache 6 років тому +84

    Really helpful, I laughed hard on the mineBitcoin function :D

    • @knekkii
      @knekkii 6 років тому +1

      I snorted!

  • @Vlad-ld9cu
    @Vlad-ld9cu 4 роки тому +2

    You're a good teacher. Very useful information for discovering this tool.

  • @施佳乐-j1y
    @施佳乐-j1y 4 роки тому

    It seems that setting the mode of webpack to “production” can help us a lot! Aweme!

  • @talk2s5061X
    @talk2s5061X 5 років тому +4

    excellent video I am going to look like an expert in my team now

  • @sanjayprashadh3969
    @sanjayprashadh3969 Рік тому

    Awesome intro video to improve web page performance !

  • @AjaySolleti
    @AjaySolleti 6 років тому +5

    I want more cats from now on in these talktorials

  • @CaioLouro
    @CaioLouro 6 років тому +2

    Really great and direct to the point!

  • @knowledgematters2023
    @knowledgematters2023 4 роки тому

    This helped me a lot in optimizing a heavily loaded wordpress website. :)

  • @timura.6658
    @timura.6658 6 років тому

    У каждого из нас есть своя функция 'майнинг биткойн'. Спасибо ребят за то что делаете, дай вам Бог здоровья))

  • @venky76v
    @venky76v 6 років тому +1

    Awesome video Kayce. Brilliant as always 👏👏 .. wonder if your cat is mining your cat food 🤔🤔

  • @CarlitoProductions
    @CarlitoProductions 4 роки тому

    This is great info on performance and SEO related stuff. Thanks!

  • @moshiuramit
    @moshiuramit 6 років тому

    Awesome!! Where can I get more learning resources about Audit, Performance and resources about how does use them to improve load performance ?

    • @RomboutVersluijs
      @RomboutVersluijs 4 роки тому

      REad the info and click read more. Buts it quite limited and kind of tech related. You can also check developers.google.com

  • @ravalikag519
    @ravalikag519 9 місяців тому

    Hey @Kayce, great video ! Can you give any pointers about doing something similar to optimize an SSG website ?

  • @johannesdrechsler8585
    @johannesdrechsler8585 6 років тому +1

    Great video and nice examples!

  • @WIKIKALI
    @WIKIKALI 5 років тому

    Great video with nice examples!

  • @JamieBensonTV
    @JamieBensonTV 4 роки тому

    This is fine for helping navigate the Google Developer tools (thanks) but seems to quickly skip some of the 101 style actionable advice. How do you create the "edit page" for your own site. I'm able to identify the unused code but it definitely does not look the same as the one's you have and I don't see how to add it to the request blocking and/or delete it. Typing in /libs* as a new pattern does not seem to do the trick. Huh, I appreciate the effort and difficulty of relaying this stuff in a short video but it really seems like it needs a few more descriptive elements to be classified as "101". Thanks for your time.

  • @juliocornelio4151
    @juliocornelio4151 5 років тому +1

    great tutorial. very well made. thank you

  • @RajeshJustaguy
    @RajeshJustaguy 4 роки тому

    this was so helpful.. its gold

  • @jamaicanfoodsandrecipes
    @jamaicanfoodsandrecipes 4 роки тому +1

    Can some help me out please, how to get my website to open up in glitch?

  • @ShivangiSingh-wc3gk
    @ShivangiSingh-wc3gk 2 роки тому

    Awesome, didn't know anything about this.

  • @ecommercetechbuild1354
    @ecommercetechbuild1354 2 роки тому

    Very helpful video.Thanks a lot.

  • @AbhishekSharma-cq2hw
    @AbhishekSharma-cq2hw 2 роки тому

    This was extremely helpful!

  • @goodtimes4502
    @goodtimes4502 4 роки тому +3

    You forgot to mention the part when you stay up all night re-working files.

  • @mrclaytron
    @mrclaytron 6 років тому +5

    Awesome video Kayce!
    I hope Tony has found a better way to mine for Bitcoin... That's one hell of a talented cat! :-)

  • @MarkThackwell
    @MarkThackwell 6 років тому +2

    I love Fesh too

  • @flysports3856
    @flysports3856 6 років тому

    Very helpful especially for a novice developer like me.

  • @mkgujjars7320
    @mkgujjars7320 6 років тому +8

    Good

  • @newnam
    @newnam 5 років тому

    I'm fairly new to using the Chrome Dev Tools, but these files you're loading to better load time (server.js, model.js, etc.) - Are these files I simply create in the root or are these files specifically contained within a Glitch hosting environment?

  • @SurfingTheMentawais
    @SurfingTheMentawais 2 роки тому

    Super useful video. Thanks

  • @aidThompsin
    @aidThompsin 4 роки тому +1

    Glitch is failing. "tony has been suspended". Any tips on how to improve load performance of that?

  • @IjiyodeZulykhoh
    @IjiyodeZulykhoh 23 дні тому

    Is there a new video or an update for this video? It's saying project is no more running...

  • @cagmz
    @cagmz 5 років тому +3

    7:03 When Showing Coverage, does it matter if Webpack is in development or production mode? I'm assuming that you'd want to use development mode in order to view the unminified source and have the coverage show red/green accurately (as opposed to production mode, where the source might be minified). Can anyone confirm?

  • @AnilArya51
    @AnilArya51 4 роки тому +1

    I think you should start using chromebook ,What would people think even you dont use those .. just joking ...I must say this video is very useful ..

  • @davidpicarazzi
    @davidpicarazzi 4 роки тому +2

    i am a little confused, it says glitch/edit/#!/tony but how do i do this for my own site?

  • @VivekTR
    @VivekTR 2 роки тому

    You're a great teacher.

  • @restuwahyusaputra7764
    @restuwahyusaputra7764 4 роки тому

    Great tips

  • @elmotareal
    @elmotareal 5 років тому

    great video, seriously deranged conclusion, you enhanced the performance by removing a functionality? I too can display a "hello page" html page in no time, I really was looking for more... like does set timeouts enhance or block page rendering?

  • @roylondon1619
    @roylondon1619 5 років тому

    in this video at 4:44 mark you said to import the compression library . I've been trying to figure it out . How do I import the compression library. I'm stuck at this stage. 😕Thanks ☺

    • @David-yz9mb
      @David-yz9mb 5 років тому

      What he meant was to add the 2 lines const compression = require('compression');
      app.use(compression());
      To be fear I also did not understand it at first, because I'm not familiar with require and app.use.

  • @mohdmzaman
    @mohdmzaman 5 років тому

    Extremely helpful, Thank-you Brother.

  • @rickvian
    @rickvian 3 роки тому

    i brusted my coffee while listeing 11:49

  • @mranzuann7950
    @mranzuann7950 3 роки тому

    wow, this is really useful, thank you so much

  • @praveenchandrasekaran7064
    @praveenchandrasekaran7064 4 роки тому

    Eliminate render-blocking resources in coverage shows the unused coding for that particular page or is it for all page unused codes?

  • @jeanneviegarciano7147
    @jeanneviegarciano7147 4 роки тому

    Thank you for this! Very informative

  • @e4r281
    @e4r281 6 років тому +4

    That cat is so cute !

  • @kablamopow
    @kablamopow 2 роки тому

    Just wondering if I do request blocking, will that influence the Audit performance?

  • @gholamrezadar
    @gholamrezadar 3 роки тому

    very informative video, thank you!

  • @jjva9
    @jjva9 4 роки тому

    Changes aren’t visible as and when done why? I have changed my css file of the Wordpress website but it keeps on loading the previous version only . Please help

  • @jaik9321
    @jaik9321 4 роки тому

    good one ; can we showcase for a web page (desk top version).

  • @videojock100
    @videojock100 5 років тому

    This is Really good for any novice

  • @jared394
    @jared394 5 років тому

    Awesome video, thanks!

  • @RomboutVersluijs
    @RomboutVersluijs 4 роки тому

    I got a question about audit. When i check "request counts" Its shows images as 2nd in the list with 256Kb. But when i check network tab i dont get near that value. There is no more info in request acount list to check, its just a number i see. I wondering if that number is actually correct

  • @amarg26
    @amarg26 4 роки тому

    At 8:40 You have removed the jquery entirely. What if i have other dependency librarey like JQuery UI, Jquery Datatable etc? Can You even remove unused code from themby this coverage? Won't it break these libraries ?????

  • @ravikishore-anchala
    @ravikishore-anchala 5 років тому

    How do I audit a page which is part of flow whose url cannot be loaded, like I go few steps further by clicking few buttons and this is done using traditional xhr calls and the url of the page doesnt change.

  • @menakaramasamy8936
    @menakaramasamy8936 5 років тому

    Thank you so much. Learnt a lot

  • @ShowMeTheCodeAlejandroMarquez
    @ShowMeTheCodeAlejandroMarquez 3 роки тому

    I am running setUpNode & indexWholeBlockchain in my render function. My app no longer works. What's going on?

  • @Invingagan
    @Invingagan 6 років тому

    Indeed a great video. What do you recommend to make performance measurement for angular 6 application? Angular build creates files which are out of my control.

    • @Invingagan
      @Invingagan 6 років тому

      @@kaycebasques7422 thanks, i have created an angular application with lazily loaded modules. I has bad performance in first paint. Any input to what to look for to improve?

  • @jonathanfeldman7309
    @jonathanfeldman7309 6 років тому

    Somewhat related, but when you mentioned adding the async tag to script elements it reminded me of an issue I had with fonts. Whenever I add a font or an icon set like material icons to my site, the audit tab complains about it being a render blocking resource that takes a moderate amount of time to load. I think some blog posts I read suggest asynchronously loading the font via JavaScript, but that seems a little complicated. It looks like adding a preload tag for the font before the link tag that actually references it sometimes causes it to pass the audit, but I'm not sure if it has any actual effect on page load. Any suggestions on how to avoid it? I know font loading comes up frequently so sorry if this has been asked a lot.

    • @entalpa
      @entalpa 6 років тому

      Maybe you should split the fonts in seperate files and load only the file with the fonts that you really use on the document.

    • @fernandolunadev
      @fernandolunadev 5 років тому

      Hi @Jonathan!
      Are you using the Material Icons font, remotely?
      I'm thinking maybe a good idea for it, is making a count the total of Material icons you are using, and render these in GIF images, stores locally and call them from your HTML Materialize Components.
      I think these will get better performance than using a remote icon web font... or not?

  • @emilioleon7505
    @emilioleon7505 3 роки тому

    Hi! My website load good when loading turns to the right, but when it starts loading to the left it takes like 4 secs. what is the difference between loading to the left and right? (Chrome)

  • @Vagelis_Prokopiou
    @Vagelis_Prokopiou 6 років тому

    Thanks. Really useful.

  • @instylecasesinstylecases7239
    @instylecasesinstylecases7239 3 роки тому

    Would you recommend simple tool for measuring how long does take to load the page?

  • @pemessh
    @pemessh 6 років тому

    This will be super helpful
    Thanks

  • @Anonymous-rg1dd
    @Anonymous-rg1dd 4 місяці тому

    This tutorial should be updated. It is 2024 now. A lot of things have changed.
    Anyway, thanks for this tutorial.

  • @sravangopu5730
    @sravangopu5730 2 роки тому

    Hi bro, can you please make a video how to create new custom storage in dev tools

  • @rightwingcouriernews899
    @rightwingcouriernews899 5 років тому

    Tony, the cat is adorable, You did a great job!!! Please tell Tony Thank You for the fish on the Dev Pg. really well-done Video I think I can make My site load better. Ohh with that being said, does the Google Dev tools work on WordPress site? or do I need to do something else? Thank You

  • @tinmank
    @tinmank 4 роки тому

    Audit feature does not work in Electron, it says can only audit HTTP/S and Chrome extensions.

  • @SpidoHits
    @SpidoHits 2 роки тому

    hello sir, this was useful. i am facing the problem with my website, i don't know that how to remove unused java scripts from my blog HTML code. please will you help me.

  • @abnag333
    @abnag333 5 років тому

    Hi.. I am not able to see red or green bar to mark used and unused codes in the source pane. I am using chrome 77.

  • @SandroTreglia
    @SandroTreglia 5 років тому +1

    hello congratulations for the tutorial I registered with my email and I followed your tutorial! How can I view my incognito site to optimize it? Thank you

    • @bedouiadam
      @bedouiadam 5 років тому

      To open your site in incognito mode, press Control+Shift+N (Command+Option+N on Mac)

  • @王土达-b2z
    @王土达-b2z 5 років тому

    Awesome video.

  • @violetaveleva6143
    @violetaveleva6143 4 роки тому +1

    great background!

  • @desmundullrich
    @desmundullrich 4 роки тому

    1:56 Audit is "Lighthouse" for me
    I'm running Google Chrome: 83.0.4103.116 (Official Build) (64-bit)
    On macOS Version 10.15.5 (Build 19F101)

  • @andreiasw1
    @andreiasw1 5 років тому

    I have just enabled compression, checked in network and saw indeed that content encoding shows "gzip", the audit however does not recognize this. I have a multipage webapp and apparently the audit only tests the login page where no compression happens because its too small. Any suggestions? Thank you!

    • @andreiasw1
      @andreiasw1 5 років тому

      @@kaycebasques7422 Wow, awesome, thanks for the quick response. I enabled compression for the entire middleware. I went to the page I wanted to audit and hit start. Lighthouse however evaluated the login page according to the results.

    • @andreiasw1
      @andreiasw1 5 років тому

      @@kaycebasques7422 Appears so. In the title of the audit I can see only the main link (I am testing on localhost so I see localhost:4200 in the audit although I expect it to evaluate localhost:4200/projects, the path I am at when starting the audit). With the clear storage tick, the main page (localhost:4200) indeed redirects to the login page.

  • @RitchieMatos
    @RitchieMatos 5 років тому

    I have a question please. Why does the glitch keep on restarting on my end? Am I missing something?

  • @webapps8800
    @webapps8800 4 роки тому

    hello
    thanks a lot for this good video
    can u help plz realy need help
    i wana know how to defer loading of javascript file
    the problem is
    the code is generated dynamicly in template file but without defer option
    can u help plz ???

  • @sahibisht6051
    @sahibisht6051 4 роки тому +1

    Hello dev tool I have a problem (how to remove unused javascript in blogger) please someone tell me.

  • @amd_d_praised
    @amd_d_praised Рік тому

    Has the Audit tool been replaced by Lighthouse?

  • @AntonMitsev
    @AntonMitsev 6 років тому

    Great one! Thanks!

  • @goodtobehomepetsitting1246
    @goodtobehomepetsitting1246 3 роки тому

    So I am totally ignorant and learning. What about WordPress when you are using a child theme. How can you edit the parent files and not have them change on you during updates?

  • @gexcube1981
    @gexcube1981 2 роки тому

    Good evening, can I know a senior expert to speed up my website from DESKTOP AND MOBILE on chrome and edge?
    a person who knows how to fix errors and bugs without ruining the website;

  • @manoharjonnalagadda6551
    @manoharjonnalagadda6551 3 роки тому

    Please explain the performance panel in detail

  • @gilney.mathias
    @gilney.mathias 6 років тому

    Holy... That was very informative kk' Thank you!

  • @avimehenwal
    @avimehenwal 4 роки тому

    Its amazing video ... super high quality content. Cant believe its for free XD

    • @jayaprakashr5691
      @jayaprakashr5691 Рік тому

      This comment is look like you are watching and enjoying like a movie

  • @dominikseljan3043
    @dominikseljan3043 6 років тому +1

    Great tips! Thanks so much for the video

  • @RomboutVersluijs
    @RomboutVersluijs 4 роки тому

    THe performance test you showed keeps crashing with the CPU throttling on, runs fine leaving it off

  • @divyapai5560
    @divyapai5560 4 роки тому

    Is server.js file belongs only to node.js or normal javascript can also use

  • @whereismycheese5481
    @whereismycheese5481 4 роки тому +1

    Now Audits tab is renamed as Lighthouse?

  • @rishukumar7586
    @rishukumar7586 4 роки тому

    can u explain the time line little bit more and tell the time a function takes to execute?

  • @yenespace406
    @yenespace406 3 роки тому

    1 question, I have found red lines in "Coverage"
    and they are from Elementor. I need some of them but the rest is RED
    can I remove all the unwanted lines or will I lose other working lines with them.
    If i can remove them separately how to?

    • @ashkanahmadi
      @ashkanahmadi 3 роки тому +1

      I've been using Elementor for about 3 years now and this is one of the big reasons I'm moving away from it completely. They load a lot of stuff that isn't needed at all. They add a lot of code bloat and unnecessary http requests and load some libraries whether you need them on the page or not. I have heard Oxygen does a much better job with this but still, no page builder can be as good as professional tools and hand-coding using best practices.

    • @yenespace406
      @yenespace406 3 роки тому

      @@ashkanahmadi Yeah its a point worth fixing.

  • @shwetaganganhalli7190
    @shwetaganganhalli7190 4 роки тому

    Optimizing web speed, on this code can be written in selenium code?
    is it possible.

  • @nouribenz
    @nouribenz 2 роки тому

    Very useful thanks

  • @AbhishekKumar-mq1tt
    @AbhishekKumar-mq1tt 6 років тому

    Thank u for this awesome video

  • @kayan_dev
    @kayan_dev 4 роки тому +1

    1:36 just press f12 button