The ultimate guide to web performance

Поделиться
HTML-код
  • Опубликовано: 7 май 2023
  • Learn how to analyze and optimize the performance of any website. In this tutorial, we explore tips and tricks to build faster UIs that are ideal for search engine optimization.
    #webdevelopment #javascript #css
    🔥 Become a PRO member fireship.io/pro
    💵 Use code BEYOND25 to save 25%
    Unlighthouse github.com/harlan-zw/unlighth...
    Web Vitals Plugin web.dev/debug-cwvs-with-web-v...

Комментарии • 324

  • @ImaDoofus
    @ImaDoofus Год назад +350

    I'm a simple man, I see a fireship video, I click.

  • @radi4nt_
    @radi4nt_ Год назад +1158

    likes.

  • @aryangavale4878
    @aryangavale4878 Год назад +247

    The amount of knowledge he gave about web performance is just insane judging by the amount of time he told it in. This information would have been a lot harder to process if it would be told by someone other that fireship

    • @ThomPorter74
      @ThomPorter74 Год назад +5

      Agreed! I knew about LCP, but had never heard of CLS or FID. A few minutes with a Fireship video and suddenly I'm an expert. He's by far my favorite dev-related content creator.

    • @colinpickup5770
      @colinpickup5770 9 месяцев назад

      Jeff is da man

  • @Patrity
    @Patrity Год назад +90

    Unlighthouse has been a great help to my workflow. Awesome tool!

    • @omnilothar
      @omnilothar Год назад +2

      it is not an extension? so I need to have nodejs in local, clone the repo, and npm install then run the npx within the same dir?

  • @michaelai8274
    @michaelai8274 Год назад +38

    There was a time I used to think about what exactly companies required retaining web developers for after the initial website build and deployment, and its later I discovered the functionalities of dynamic websites, time series apps, things like this video - performance which requires continuous integrations possibly, website updates, ui updates, etc. With these little and many more, I discovered yeah, its actually work - work, work, work, work...
    On my journey to becoming a web developer btw.

    • @shivankbatra5643
      @shivankbatra5643 Год назад +2

      same man same, its an ocean when you peek into it

    • @moritz759
      @moritz759 8 месяцев назад +1

      I got the chance to have a look at web developers work in two awesome companies and what I discovered is that there’s basically always work left to do. Whether it’s bug fixing, adding new features or improving the site. You really need a team of skilled developers just to maintain a large site.

  • @loaded_with_hay
    @loaded_with_hay Год назад +1

    I had heard about those before but could never remember which was which. Now everything is crystal clear. Good job.

  • @ThePersonWhoKnocks
    @ThePersonWhoKnocks Год назад +58

    This video is a gold mine for web developers! Fireship's knowledge on web performance is impressive, and he managed to explain everything in just 6 minutes and 43 seconds. I particularly appreciate his tips on LCP, FID, and CLS, and I can't wait to apply them to my projects. Thank you for another amazing video, Beyond Fireship!

  • @MatVids2
    @MatVids2 Год назад +40

    Fireship really knows how to take his concept and jam it right where I need it the most. Thanks, Jeff!

  • @thefynn
    @thefynn Год назад +20

    Thank you for that video, just a few hours ago searched for layout shift issues because my build has horrible layoutshifts for no reason. Your video came in the right moment.

  • @SurprisedSyrup
    @SurprisedSyrup Год назад

    I'm so glad I found this channel, learning so much new stuff on every single video

  • @universaltoons
    @universaltoons Год назад +71

    Fireship puts so much effort in his videos that I can feel it coming inside of me

    • @AmxCsifier
      @AmxCsifier Год назад +34

      Wtf with these inside of me jokes? Is this some kind of an inside joke? Wait.... 🤦‍♂

    • @eviltom8783
      @eviltom8783 Год назад +1

      ​@@AmxCsifierI believe they just copied the tip comment for likes.

    • @ArthurKhazbs
      @ArthurKhazbs Год назад +3

      @@AmxCsifier They're probably making naughty comments just because the P. Hub was mentioned in this video

  • @NotTheHeroStudios
    @NotTheHeroStudios Год назад +6

    the level quality Jeff puts out is incredible. It feels like he has an entire team behind him, but from what I know, its just him

  • @rukeeojigbo2221
    @rukeeojigbo2221 11 месяцев назад +1

    Wow!!!!!!!!!!! Men, how you break things down so clearly and in such a practical manner is beyond me. Thanks a lot for this video

  • @p_o_z_e
    @p_o_z_e Год назад +2

    Scary timing as i have just been tasked with trying to find these kind of performance bottlenecks, awesome video like always!

  • @atirpok3
    @atirpok3 Год назад +14

    That is definitely the perfect aspect ratio for all images. Definitely superior to the golden mean.

  • @martinchya2546
    @martinchya2546 Год назад +2

    As for general website optimization, image lazy-loading is quite low-hanging fruit. It can shave few seconds on LCP for unoptimized sites due to resource competition in critical rendering path. And you can turn the optimization with single attribute nowadays.

  • @thelateweeb2799
    @thelateweeb2799 Год назад

    These videos are great I can feel all the hard work inserted inside

  • @almightytony09
    @almightytony09 Год назад +2

    Great video Jeff! Love the info!

  • @SAMs3piol
    @SAMs3piol Год назад

    Dude, this Beyond Fireship stuff is pure gold.

  • @roid1510
    @roid1510 Год назад

    Thank you for this great tutorial. Id love to hear more towards accessibility

  • @onthegocode1443
    @onthegocode1443 Год назад +13

    Awesome stuff, now I'm going to use this to optimize my portfolio

    • @addidix
      @addidix Год назад +32

      need my simple black and white single page portfolio to be blazingly fast

    • @hyper_channel
      @hyper_channel Год назад +1

      @@addidix yes

  • @lpanebr
    @lpanebr Год назад

    Amazing content. Exponential value per minute. Thanks.

  • @nicomirinda
    @nicomirinda Год назад

    oh god, I learn so much from your (

  • @HARIKRISHNANSRSRSHD
    @HARIKRISHNANSRSRSHD Год назад

    Amazing. You are doing an awesome job for the tech community.
    I dont have words to express the gratitude.

  • @hakuna_matata_hakuna
    @hakuna_matata_hakuna Год назад +8

    am so glad you're off theAI hype train and dripping awesome practical content again

    • @YuriG03042
      @YuriG03042 Год назад +1

      he has never been on the hype train? he just reports AI news when it's relevant, but he says that AI won't take our jobs

    • @vaisakhkm783
      @vaisakhkm783 Год назад +3

      @@YuriG03042 atleast he is out of that...

  • @oc4725
    @oc4725 Год назад +1

    Thanks alot for helping the world become more efficient and familiar with high quality web development

  • @ComradeTomatoTurtle
    @ComradeTomatoTurtle 11 месяцев назад

    It’s amazing what you fit in such a short video when I spent weeks learning to optimize all sorts of websites for speed. I still spend hours on this for clients, but lighthouse is not the best way to check page performance, I find gtmetrix a better tool. Lighthouse gets negativity effected by chrome extensions and thus have to perform it incognito or turn extensions off.

  • @svilen12345
    @svilen12345 Год назад

    I used to work for this WP plugin Nitropack, which did wonders with these metrics. Loading critical resources first and separating above-the-fold content for priority load. A-level

  • @ralfllanasas4258
    @ralfllanasas4258 Год назад

    Appreciate the detailed video. Would love to see you optimize an actual page live.

  • @xcrap
    @xcrap 9 месяцев назад

    That UnLighthouse is really helpful! Thanks a lot :)

  • @moatez
    @moatez Год назад +3

    Great video ❤, more on performance pls 🎉

  • @TechDiffuse
    @TechDiffuse Год назад

    Awesome video! Keep up the great work!

  • @dennis9566
    @dennis9566 Месяц назад

    That's the perfect beginning!

  • @nixcreativecoding
    @nixcreativecoding 2 месяца назад

    Awesome content! 🔥🔥

  • @7bagette
    @7bagette Год назад

    Thank you so much for unlighthouse!!!

  • @ben_sch
    @ben_sch Год назад

    Glad to see Astro crushing it in the Unlighthouse reports. Am using it for my next client project 😁

  • @YatharthVerma
    @YatharthVerma 8 месяцев назад

    Great Video. Learnt a lot. thanks

  • @austinamento
    @austinamento Год назад

    I hope you never stop making videos or else my job will be at risk!

  • @chaseclingman
    @chaseclingman Год назад +30

    I think more importantly is that developers need to focus on the instant gratification that the user gets when the page loads.

  • @subinaypanda9936
    @subinaypanda9936 Год назад

    Your sense of humour is really beyond fireship

  • @ricardocnn
    @ricardocnn Год назад +11

    Facebook and Google tracking scripts hit a lot the performance

    • @kr30000
      @kr30000 Год назад

      Did you look into partytown?

    • @jondoe6608
      @jondoe6608 Год назад +1

      Or even better don’t be evil and don’t have google and facebook tracking

    • @ricardocnn
      @ricardocnn Год назад

      @@kr30000 No

    • @ra2enjoyer708
      @ra2enjoyer708 Год назад

      @@kr30000 Partytown has a loads of issues with loading 3rd-party scripts.

    • @kr30000
      @kr30000 Год назад

      @@ra2enjoyer708
      I mean yea, 3-rd party scripts might always have issues depending on many factors.

  • @nagesh007
    @nagesh007 11 месяцев назад

    Awesome Info 😍, Thanks

  • @PranavKunjir
    @PranavKunjir Год назад

    i like how the beyond fireship became like the main channel before ai revolution!

  • @ShahriarAhmedShovon
    @ShahriarAhmedShovon Год назад

    True gem. Thanks.

  • @zeeshannagori007
    @zeeshannagori007 Год назад +1

    Great 🎉
    Can you also make a video on how can we optimise 3rd libraries to improve the performance of the website?

  • @brNoMundo123
    @brNoMundo123 Год назад

    Great video!

  • @atomisku
    @atomisku Год назад

    This guy does it yet again

  • @lynwoodcallahan7286
    @lynwoodcallahan7286 Год назад

    wtf, this is like EXACTLY the video I needed right now! Now I finally know who my NSA agent is, thanks for the clarification 👍👌 (also thank you for the very helpful video)

  • @40fps143
    @40fps143 Год назад

    Whenever I see a new fireship video I come fast.

  • @NicolasSilvaVasault
    @NicolasSilvaVasault Год назад +1

    wow even tho i'm no longer a web dev, these tools are fucking amazing, unlighthouse is stupidly useful too, i can't even believe is free, i wish we had something like this for react native or native ios/android

  • @UmanPC
    @UmanPC Год назад

    Definitely a big LIKE from me

  • @rdec5448
    @rdec5448 Год назад +4

    There is a "Browser Rendering Optimization" playlist with detailed explanation from Google employees about how it all works behind the scenes in chromium. But... it was released 7 years ago, maybe some things changed.

  • @redabelouch6776
    @redabelouch6776 Год назад

    Hell no, you don't need to capture my attention. I see a fireship video, i sit down, click, and focus with the video😉

  • @codename_enzo
    @codename_enzo Год назад

    I like this video even before I start watching it

  • @markilabot14
    @markilabot14 Год назад

    Can we just appreciate the amount of meme fireship puts inside of me

  • @baggier
    @baggier Год назад +3

    10% web development guide
    90% horny goat weed

  • @chromevillager
    @chromevillager Год назад +27

    Amazing how the college board website is bad in every one of these metrics

    • @sullivanb2306
      @sullivanb2306 Год назад +6

      collegeboard’s website makes me want to die every time I have to use it

  • @LukasSoftwareDeveloper
    @LukasSoftwareDeveloper Год назад

    2:26 Hol up what is that href XD Fantastic video thank you

  • @freakfreak786
    @freakfreak786 2 месяца назад

    5:35 man that one got me real good
    almost choked
    thank you

  • @Sooyush
    @Sooyush Год назад +1

    fireship was in Demon level of educational content delivery, now he's just Dragon level heading to God.

  • @wmcphail
    @wmcphail Год назад

    thank you!

  • @gotoastal
    @gotoastal Год назад

    I would add JPEG-XL to modern image formats; slap it in your picture elements and image-sets now so browsers know your site wants supports (some forks do support it).
    CDN can often time be an expensive premature optimization. I don't think folks should blindly assume they need one in a lot of cases. “Workers” can be overkill too. The free services will go the way of Heroku in the future and drop their free tier so it’s better to avoid if you can. Frameworks like Qwik don’t even work with out JavaScript which circles back to many sites don’t need more than HTML, a single CSS file, and sparing JavaScript for enhancement; so many sites are broken with ‘optimizations’ that make things worse. The added complexity can just as much add cost to maintenance and development.

  • @lewismuriungi4564
    @lewismuriungi4564 6 месяцев назад

    Amazing content

  • @nanow1990
    @nanow1990 Год назад

    I feed all this information to my AI and now it's able to write a fast and modern websites for me.

  • @marius1029
    @marius1029 Год назад

    great video 🎉

  • @SKRUBL0RD
    @SKRUBL0RD Год назад

    this video taught me to give up on trying to make websites at all

  • @hipdev_
    @hipdev_ Год назад +2

    🔥 content!

  • @7heMech
    @7heMech Год назад

    Didn't expect the hub reference

  • @radezzientertainment501
    @radezzientertainment501 Год назад

    this is fantasmic

  • @dave6012
    @dave6012 Год назад +1

    I instantly improved my lighthouse score by doing this simple trick 😱 (fireship bots hate him)
    I disabled react developer tools 💪

    • @YuriG03042
      @YuriG03042 Год назад

      you had that enabled on prod???

    • @dave6012
      @dave6012 Год назад

      @@YuriG03042 it’s a browser extension 😄

  • @tommyhetrick
    @tommyhetrick Год назад

    The irony of me just without thinking double clicking the right side of the screen after the first line 😂

  • @user-dx8om6dl9p
    @user-dx8om6dl9p Год назад

    Hi, great vid, just one note on the use of unlighthouse, you must add --throttle to the command line, without it you won't see genuine lighthouse results

  • @vitormalencar
    @vitormalencar Год назад

    I think the tool is great, but I've noticed some differences when running it on my CI. I already have a setup that checks for Lighthouse scores, and I've found that there's a significant gap between the scores in production and those reported by the tool. For example, while the production score is around 75 (which seems correct), the same page scores 95 on Unlighthouse.

    • @martinchya2546
      @martinchya2546 Год назад +1

      Lightouse is not a tool meant to be comparable between different machines/environments. Only compare LH audits to another LH audits on the same machine. Its heavly influenced by your network speed, operating system, cpu hardware, etc. There is no point comparing scores on CI vs your personal machine. Even tools like WPT and GSPI both use LightHouse under the hood, yet you will get vastly different scores using them.

  • @sushiroikura
    @sushiroikura Год назад

    regarding CLS, Google does this thing where they add "People also search for" box below the result you clicked on when you go back to the search results page from the site you clicked on. This component blows

  • @roodiger
    @roodiger Год назад

    Can you use unlighthouse for projects that use an MVC model like laravel? I tried it on my product, and it wouldn't mind any routes. I then tried just feeding it directly the URL's for my projects 10 biggest webpages, and it ignored the routes in the URL so it didn't work.

  • @user-ec6mo9yn5r
    @user-ec6mo9yn5r 4 месяца назад

    cool video)

  • @pepperpeterpiperpickled9805
    @pepperpeterpiperpickled9805 Год назад +1

    this is sadly too true, I feel like that guy from the simpsons episode "barts comet" who cuts off professor frink's introduction by screaming *"QUIT STALLING; WHAT'S THE PLAN?!"*

  • @sm2azad255
    @sm2azad255 Год назад

    please make a video on sql optimization, it will be very helpful.

  • @laniquo
    @laniquo Год назад +2

    "Aspect Ratio: 69/420" 😂

  • @Jamiered18
    @Jamiered18 Год назад +2

    This is all foreign to me. Building an enterprise web app that our clients open at the start of the day, then leave open. It's actually preferable for us to have some delay on first load, get it all in the cache, and then a smooth experience after that.

  • @gururajchadaga
    @gururajchadaga 5 месяцев назад

    I would love the see an aspect ration of 69/420 in production.
    Hilarious, thanks for the good laugh along with kickass content.

  • @DioArsya
    @DioArsya Год назад

    astro literally sick

  • @OkayNoway
    @OkayNoway Год назад +2

    Why did you censor github?

  • @HemstitchedIrony
    @HemstitchedIrony Год назад +2

    Just remember, when a measure becomes a target it stops being a good measure, lighthouse is a diagnostic tool not an optimization target, use your judgement.

  • @jaejonmalloy1341
    @jaejonmalloy1341 11 месяцев назад

    Not a huge fan of the yellow furniture, but mad respect to any mother fucker that runs a blade brace; guaranteed shoulder bruising... And now a felony, because reasons.

  • @pratikbhetwal3670
    @pratikbhetwal3670 Год назад +2

    Also avoid JS methods that cause layout thrashing such as getBoundingClientRect(), getComputedStyles() etc.

  • @universaltoons
    @universaltoons Год назад

    is Astro better than QwikCity and/or SolidStart in terms of performance?

  • @nielskersic328
    @nielskersic328 Год назад +6

    By far the most common cause of unexpected CLS I come across is Google ads that keep changing size. It would be nice if they could do something about that

  • @colinmaharaj
    @colinmaharaj 11 месяцев назад

    HGW ordering is important

  • @HariHaran_10
    @HariHaran_10 Год назад +1

    How to enable that console ligging optionsi cant find

  • @deepjoshi356
    @deepjoshi356 Год назад

    How would the unlighthouse website performed on unlighthouse analysis?

  • @s0ulweaver
    @s0ulweaver Год назад

    This topic is fine, the video is fine, the comments are fine except a few comments are inside me.

  • @milanpaudyal7671
    @milanpaudyal7671 Год назад +1

    I was unable to try unlighthouse by following the docs. Can anyone who have tried it help me.

  • @johnychinese
    @johnychinese Год назад +1

    Nextjs: add few default html properties to img tag: we fix the image tag😁

  • @CoderSander
    @CoderSander Год назад +1

    6:14 no worries guys, he said github 😁

  • @thesanjithkumar
    @thesanjithkumar Год назад

    I ran unlighthouse on my personal website saw thzt it uses emulated mobile device, how can I run it for desktop devices

  • @GbpsGbps-vn3jy
    @GbpsGbps-vn3jy Год назад +1

    preload as audio still not supported

  • @winter7885
    @winter7885 5 месяцев назад

    I might be dumb but i dont understand how to set up unlighthouse to start using it.

  • @Makwaje
    @Makwaje 5 месяцев назад

    Astro is wild

  • @tenebrae1191
    @tenebrae1191 11 месяцев назад

    👏