Are you optimally loading your images?

Sdílet
Vložit
  • čas přidán 5. 09. 2024
  • Do you know how and when to use decoding=async, loading=lazy, fetchpriority, picture, aspect-ratio, or srcset?
    A deep dive on optimally loading images in my latest blog post: builder.io/blo...
    #html #webdev #performance #css #javascript

Komentáře • 55

  • @Steve8708
    @Steve8708  Před rokem +2

    Learn more about the attributes mentioned, as well as a few more not covered in the video, in my full article: www.builder.io/blog/fast-images

  • @scyfox.
    @scyfox. Před rokem +20

    it's good to know that there are tools for optimization because it would be a pain to build a gallery having to add all those lines to each and every image on a page.

  • @Mitsunee_
    @Mitsunee_ Před rokem +3

    I prefer a single sourceset and checking the accept header serverside to determine whether to send an avif, webp or png. Saves a bunch of html if you end up using this a lot of a single page, such as in an image gallery page.

  • @zindev
    @zindev Před rokem

    What a such beautiful explanation in a short video. Thank you for this!

  • @harshsonar9346
    @harshsonar9346 Před 8 měsíci

    the most productive 3 minutes of the day

  • @dopetag
    @dopetag Před rokem +2

    Wow! I've learned so much! Thank you. Your channel deserves much more views and subs!

  • @ricko13
    @ricko13 Před rokem +2

    bro I'm really enjoying all your videos!

  • @namankeshari7332
    @namankeshari7332 Před rokem

    This was super insightful! Thank you so much for making this video!

  • @arks.lacerda
    @arks.lacerda Před 8 měsíci

    This is amazing! Very cool, you gained a new follower.

  • @nivaldolemos5280
    @nivaldolemos5280 Před rokem +5

    fantastic

  • @--VICKY-
    @--VICKY- Před rokem +6

    From where, you learn these things.. I too surfing around the globe, still didn't notice these things... Can you pls explain how to start researching on certain things... It will be more helpful for me, Thank you❤

  • @NoName-1337
    @NoName-1337 Před rokem

    Thank you for your tipps.

  • @pauloluguenda8397
    @pauloluguenda8397 Před 3 měsíci +1

    2 years of studying html and I didn't know this tf

  • @codesymphony
    @codesymphony Před rokem

    very concise. love these vids

  • @ashish_prajapati_tr
    @ashish_prajapati_tr Před rokem

    so much of optimization Thanks for video

  • @christopheanfry2425
    @christopheanfry2425 Před rokem

    Amazing video so useful. Thank you so much. 🙏🙏🙏🙏

  • @Peterstavrou
    @Peterstavrou Před 4 měsíci

    Awesome!
    Should the srcset be set to the below as default or do we need to try to figure out the sizes per width?
    /image.png?width=100 100w, /image.png?width=200 200w, /image.png?width=400 400w, /image.png?width=800 800w

  • @dzwoneczek9124
    @dzwoneczek9124 Před 9 dny

    You started with background image and suddenly turned it into just img element

  • @felipefregginrules
    @felipefregginrules Před 6 měsíci

    gawwddd damn! Loved this.

  • @filipkovac767
    @filipkovac767 Před rokem

    Great video and article! Shouldn't you also include sizes attribute on all your source elements?

  • @jazzdestructor
    @jazzdestructor Před rokem +1

    Hey Bro, love this video, could you make a video about optimisations that can be done for video tag as well??

  • @fazediesel
    @fazediesel Před měsícem

    ❤❤

  • @reaper84
    @reaper84 Před rokem

    Really helpful!!!

  • @yassinesafraoui
    @yassinesafraoui Před rokem

    That's why browsers are such a huge piece of software

  • @3hustle
    @3hustle Před 4 měsíci

    bro is there any way to preload videos at the startign only and then able to seek to any point without buffering, i dont know if youtube allow this or not but is it possible somehow through programming?

  • @oladimejiolawale5443
    @oladimejiolawale5443 Před 7 měsíci

    How can I apply this to background image

  • @aleksd286
    @aleksd286 Před rokem

    That escalated quickly

  • @ahooton
    @ahooton Před 10 měsíci

    Makes sense for static content. Just wondering how the same thing is applied when the images are user uploaded and coming from a database?

    • @celadon01
      @celadon01 Před měsícem

      When you use a Db, usually save the path, but you can save the image using cdn like Cloudflare image, Next Image in Vercel this make easy this process, but if you can't paid you con try in language programming i know in PHP is possible using code.

  • @ziat1988
    @ziat1988 Před rokem

    Could you explain that srcset please. That mean I need to have 4 images in the server with 100, 200, 400, 800. Or they are created auto by the browser? Thanks

  • @fazediesel
    @fazediesel Před měsícem

  • @good-dev-student
    @good-dev-student Před rokem

    Hey, steve any best solution with sveltkit please ? thank you

  • @none0n
    @none0n Před rokem

    How does Next get those different sizes from one image src?

  • @maelstrom-qw1jl
    @maelstrom-qw1jl Před rokem

    Very informative but it doesn't solve the issue at the beginning of the video, which is about a background image.

  • @ashish_prajapati_tr
    @ashish_prajapati_tr Před rokem

    helping you to break CZcams algorithm

  • @josh-dev
    @josh-dev Před rokem +1

    Great video Steve but you forgot to mention the CDN solutions 😂

    • @Xamy-
      @Xamy- Před rokem +1

      This is just about the in HTML solutions and CDNs have prettt good mindshare

    • @josh-dev
      @josh-dev Před rokem

      @@Xamy- i know , just a harmless joke between Steve and I.

    • @8koi245
      @8koi245 Před rokem

      he said cloudinary tho

  • @jonathangamble
    @jonathangamble Před rokem +1

    This is great, will Qwik City support this?

  • @ukrainetoday960
    @ukrainetoday960 Před rokem

    3:28 Show a lot of code which add some weights to html - and told - user have this optimization)

  • @lararawf6100
    @lararawf6100 Před rokem

    God bless u

  • @taukirsheikh9405
    @taukirsheikh9405 Před rokem

    wow

  • @blackpurple9163
    @blackpurple9163 Před rokem

    What's the React js equivalent to this Image component?

    • @ricko13
      @ricko13 Před rokem +1

      there's not, better use Nextjs which is React on steroids

    • @blackpurple9163
      @blackpurple9163 Před rokem

      @@ricko13 no custom made component by any other developer?

    • @8koi245
      @8koi245 Před rokem

      @@blackpurple9163 if it's in next probably there's one, or just use cloudinary

  • @SanjuKumar-hk8yy
    @SanjuKumar-hk8yy Před rokem +1

    I always use 🤣🤣

  • @gpudoctor
    @gpudoctor Před rokem

    Or just use nextJs

  • @Rajesh-rg6fw
    @Rajesh-rg6fw Před 7 měsíci

    Make a playlist 1st