You are loading Images wrong! Use this instead 😍

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024

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

  • @georgekalogeropoulos1813
    @georgekalogeropoulos1813 Год назад +121

    Nice video but I believe 15 minutes are way too much for just suggesting 2 libraries . Would be nice to show a video of how can you code that blur effect without the libraries.

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

      bro!! He just spent a lot of time explaining UI/UX

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

      @@anosikegideon4142 sure helped me in some way ngl

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

      Finally someone that thought the same as i did. The amount of unnecessary information this guy has loaded in this to reach the 10 min mark is astounding.

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

    too much talking for 2 libraries also you didn't even show us how you did implemented the code :(

  • @1879heikkisorsa
    @1879heikkisorsa Год назад +3

    This video could have been 2 minutes long. Get to the point!

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

    It is easy to do this without libraries, 15 minutes video for suggesting 2 libraries is pathetic. I thought in 15 minutes he will have some information on how to actually do it without library.

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

    You talks so much of irrelevant info. This doesnt have to be 15 minutes. Sorry, but such a waste of time.

  • @muhammadhasnat9835
    @muhammadhasnat9835 11 месяцев назад +2

    Video is full of fluff and unnecessary time wasting talk

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

    Good video but man pls be specific, your talk was much of telling your experience in many words instead of just showing what's the problem and how to solve it, that's it

  • @mmozedev
    @mmozedev 2 года назад +92

    The main thing here that is not emphasized enough is the fact that width and height (or atleast height) need to be set. Without that information, lazy load won't work. This means your server needs to return the dimensions with the photo URL.

    • @thedigitalceo
      @thedigitalceo Год назад +23

      Exactly right. And it’s the same issue with the NextJS image component which is amazing but you still need to specify width and height which is something that goes against most good responsive design related to imagery. So it’s a catch 22

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

      Well, the reason why that width and height need to be set. It’s because, if your image not fully rendered. It became shifted, and after complete it will be jump into bottom. You will be notice, if the image combine with paragraphs. That’s why you should be set that dimensions, to give a space.

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

      @@Rhidayah What would be the approach for optimizing the images in react applications? Is there some other techniques too?

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

      can the heights and widths be a percentage of the users viewport? Or does it have to be a fixed value (px, rem, em, etc.)

    • @CantIllaoiThat
      @CantIllaoiThat 16 дней назад

      @@Rust_Rust_Rust You can use percentages. For example in tailwind you can use w-[50%] and it will automatically be responsive

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

    you do sure talk a lot

  • @andreiolar6104
    @andreiolar6104 Год назад +17

    Well, the second option would have probably worked similar. The issue on why the initial blurred download is very slow is because you have specified the same image for both the src and the placeholder src. That should have been a very light image for fast download :)

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

      Ye, my method just generate 2 versions, one 60x60 pixel and other is the orginal one. You don’t blur it. Because if the 1st version expand to w300 h300 make it blurry because small image.

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

      He just wanted to push this BlurHash library full-force.

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

      good point. It ruins the point of lazy loading to have to load the same image as placeholder. Instead you can maybe use a default background image

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

    Lazy loading is the worst way to load images

  • @omranarchitects7816
    @omranarchitects7816 2 года назад +2

    its blatantly obvious that you're trying to scam people

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

    Or using NextJS Image component 😊

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

    Those who wants to use blurhash as a dynamic image, might also consider the server performance to use blurhash,
    since I've worked with creating thumbnails via PHP, and it actually cost a massive server performance and it could make a server down if used in a looping state.

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

      Is there a solution for this, except for caching the result?

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

    what if you use the "loading="lazy"" attribute on the image tag? native out of the box in html

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

      you can use it, but as mentioned in the video it is not widely supported in the lesser known/used browsers, better to use intersection observer.

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

    but this blurbash works good only for box images

  • @3hustle
    @3hustle 4 месяца назад

    bro is there any way to preload video 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?

  • @xyz-ey7ul
    @xyz-ey7ul 2 года назад +1

    I was about to watch a number videos just to understand the purpose of react lazy feature but this video answered everything and more

  • @mubarakalalawi305
    @mubarakalalawi305 2 года назад

    In The setup tNice tutorials was a really helpful video but I'm using soft soft 12, is there a reason why I can't hear my own soft play? I click to play

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

    I'll be honest, small fast loading thumbnails were the best experience, and the only big one loading is the one I clicked, but that's just a boomer preference.

  • @1337-coder
    @1337-coder Год назад

    what if you have authentication? this doesnt work. you need to fetch the images as blobs first.

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

    why lazy load a 4mb image file? load 150k at most for each image. that;s enough

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

    Hello bro, how could you do it with nextjs Image component and blurDataUrl?

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

    hi, does anyone know what beforeLoad do in 14:20? cuz I think just use the onLoad prop to control the logic is enough?

  • @piflom8400
    @piflom8400 2 года назад

    Imagine how much money he would have made if he had ads. There’s 6.6 million views.... he’d be rich

  • @anaqo7175
    @anaqo7175 2 года назад

    Sa. TNice tutorials quarantine is making question my whole existence.

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

    is there an implementation for astro? I looked it up but I found nothing.

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

    Is there any way to load them Sequentially?
    For example loading the 2nd, 5th, 3st, then 1st and so on doesn't look very good

  • @rambhajansaw5933
    @rambhajansaw5933 2 года назад

    who has been blind their whole life and can finally see. I can't express my gratitude in words but tNice tutorials is the best I can do. THANK YOU SO

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

    Thanks for helping the community i will be so glad if you cancel continue your good work

  • @alessandromarin3803
    @alessandromarin3803 2 года назад

    Thank you so much! TNice tutorials video helped produce fire soft thanks bro❤️

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

    just wanted to know, after going through the code are we using react-lazy-loading-component and blurhash together?

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

    this guy voice is similar to webdev simplified

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

    I am triggered by the fact you use create reacy app.. Why??

  • @MonirulIslam-sg7oh
    @MonirulIslam-sg7oh 7 месяцев назад

    Thank you for the video. How do I store the hash value when I add the image from backend say with laravel and nodejs?

    • @CoderOne
      @CoderOne  7 месяцев назад

      The hash has to be stored inside the database. For example, if you upload the image, you have to generate the hash out of the image and store it alongside the image data in the database. So later on, the hash would be returned with the image data.

    • @MonirulIslam-sg7oh
      @MonirulIslam-sg7oh 7 месяцев назад

      @@CoderOne yes that what I have asked, its just hash like password hash or something different?

  • @usamakayani6537
    @usamakayani6537 7 месяцев назад

    Wordpress please

  • @dimafurs6248
    @dimafurs6248 2 года назад +16

    In my opinion, CoderOne is one of the best channels related to Web Development tips and projects on RUclips rn. Thank you very much, Islem, for all your efforts and work done in helping us to understand these topics better!

  • @petronini
    @petronini 2 года назад

    Great video, man! Could we have a look at the code to play with it and get on better? Thanks!

  • @ernestdesbordes
    @ernestdesbordes 2 года назад

    Blurhash is the best and cool way. I use that in all my projects.

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

    Hay diferencia en usar el componente Image de next e implementar este paquete?

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

    How to use blurhash with dynamic images? From TMDB API for example. I use lazy loading image in NextJs and it still quite slow

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

      @Ta Chi Bao interesting, can you share me the repo? thanks

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

    Thank you, it works perfect!

  • @dexion_gaming
    @dexion_gaming 2 года назад

    laughs in unlimited free trial

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

    Tysm, did everything as described

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

    Awesome video +++++++++++++++ 🙂

  • @paologonzales4361
    @paologonzales4361 2 года назад

    where is the github repo?

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

    this is awesome man!...i like the last one

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

    thanks a lot!!! so nice reverb

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

    now i am in a good mood

  • @dunguyen2924
    @dunguyen2924 2 года назад

    How’s it going?

  • @code-island
    @code-island Год назад

    pretty cool

  • @ziat1988
    @ziat1988 2 года назад

    thanks for the great share

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

    Cool!

  • @eyout7973
    @eyout7973 2 года назад

    Thanks a lot

  • @nro337
    @nro337 2 года назад

    Thank you!

  • @yadmr3557
    @yadmr3557 2 года назад

    ​♂️