The ultimate guide to web performance

Поділитися
Вставка
  • Опубліковано 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...

КОМЕНТАРІ • 322

  • @ImaDoofus
    @ImaDoofus Рік тому +344

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

  • @radi4nt_
    @radi4nt_ Рік тому +1153

    likes.

  • @aryangavale4878
    @aryangavale4878 Рік тому +246

    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 8 місяців тому

      Jeff is da man

  • @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!

  • @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.

  • @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 11 місяців тому +2

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

    • @moritz759
      @moritz759 7 місяців тому +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.

  • @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.

  • @MatVids2
    @MatVids2 Рік тому +38

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

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

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

  • @NotTheHeroStudios
    @NotTheHeroStudios Рік тому +5

    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 10 місяців тому +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

  • @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?

  • @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!

  • @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.

  • @atirpok3
    @atirpok3 Рік тому +14

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

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

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

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

    Dude, this Beyond Fireship stuff is pure gold.

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

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

  • @roid1510
    @roid1510 11 місяців тому

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

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

    That UnLighthouse is really helpful! Thanks a lot :)

  • @almightytony09
    @almightytony09 Рік тому +2

    Great video Jeff! Love the info!

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

    Amazing content. Exponential value per minute. Thanks.

  • @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

  • @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

  • @universaltoons
    @universaltoons Рік тому +70

    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

  • @HARIKRISHNANSRSRSHD
    @HARIKRISHNANSRSRSHD 11 місяців тому

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

  • @ralfllanasas4258
    @ralfllanasas4258 11 місяців тому

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

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

    oh god, I learn so much from your (

  • @dennis9566
    @dennis9566 29 днів тому

    That's the perfect beginning!

  • @moatez
    @moatez Рік тому +2

    Great video ❤, more on performance pls 🎉

  • @ComradeTomatoTurtle
    @ComradeTomatoTurtle 10 місяців тому

    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.

  • @7bagette
    @7bagette 11 місяців тому

    Thank you so much for unlighthouse!!!

  • @YatharthVerma
    @YatharthVerma 7 місяців тому

    Great Video. Learnt a lot. thanks

  • @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 Рік тому +2

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

  • @nixcreativecoding
    @nixcreativecoding Місяць тому

    Awesome content! 🔥🔥

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

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

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

    Awesome video! Keep up the great work!

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

    Your sense of humour is really beyond fireship

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

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

  • @nagesh007
    @nagesh007 10 місяців тому

    Awesome Info 😍, Thanks

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

    True gem. Thanks.

  • @40fps143
    @40fps143 Рік тому

    Whenever I see a new fireship video I come fast.

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

    Definitely a big LIKE from me

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

    This guy does it yet again

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

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

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

    Great video!

  • @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)

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

    I like this video even before I start watching it

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

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

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

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

  • @lewismuriungi4564
    @lewismuriungi4564 5 місяців тому

    Amazing content

  • @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.

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

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

  • @hipdev_
    @hipdev_ Рік тому +2

    🔥 content!

  • @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😉

  • @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

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

    thank you!

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

    great video 🎉

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

    this is fantasmic

  • @nanow1990
    @nanow1990 11 місяців тому

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

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

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

  • @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.

  • @freakfreak786
    @freakfreak786 Місяць тому

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

  • @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.

  • @7heMech
    @7heMech Рік тому

    Didn't expect the hub reference

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

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

  • @gotoastal
    @gotoastal 11 місяців тому

    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.

  • @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

  • @baggier
    @baggier Рік тому +3

    10% web development guide
    90% horny goat weed

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

    astro literally sick

  • @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 😄

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

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

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

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

  • @user-ec6mo9yn5r
    @user-ec6mo9yn5r 3 місяці тому

    cool video)

  • @user-dx8om6dl9p
    @user-dx8om6dl9p 11 місяців тому

    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

  • @gururajchadaga
    @gururajchadaga 4 місяці тому

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

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

  • @tenebrae1191
    @tenebrae1191 10 місяців тому

    👏

  • @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.

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

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

  • @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

  • @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?!"*

  • @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.

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

    Here for the memes!😄

  • @Makwaje
    @Makwaje 5 місяців тому

    Astro is wild

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

    2:04 you missed marking the function as an "async" function 😅

  • @Emanuele-mw8hc
    @Emanuele-mw8hc Рік тому

    Look man, you do a video with that blue thing floating around and I could listen to you for an hour

  • @pratikbhetwal3670
    @pratikbhetwal3670 Рік тому +2

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

  • @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.

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

    4:09 wth!? Is that real I'm so looking up Wolfgang Ingenfelds now 😅

  • @kasper369
    @kasper369 7 місяців тому

    Astro is just flexing

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

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

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

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

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

    Funny how you pronounce contentful.
    I always pronounced it content-full (both words pronounced as you would pronounce them separately, and “content” in the meaning of “there’s stuff inside”, not “happiness”).
    The way you pronounce it, imo sounds like you mean “fully satisfied” as opposed to “full of stuff”

  • @maloxi1472
    @maloxi1472 6 місяців тому

    Joke's on you Jeff.
    You captured my attention well before I clicked on the video 😉

  • @colinmaharaj
    @colinmaharaj 10 місяців тому

    HGW ordering is important

  • @SaurabhShelar-cm5xi
    @SaurabhShelar-cm5xi 11 місяців тому

    Can you make a video tutorial on how to make Mixed Reality (AR + VR_ Apps using React native or something?

    • @kehan6252
      @kehan6252 8 місяців тому

      I think you might need to use something like Unity for those kinds of things. React native is best used for common mobile apps like Ecommerce apps.

  • @jaejonmalloy1341
    @jaejonmalloy1341 10 місяців тому

    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.

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

    6:14 no worries guys, he said github 😁

  • @cokolele
    @cokolele 11 місяців тому

    Just 2 days after this they released INP as another stable core metric.