Learn Infinite Scroll in JavaScript

Поділитися
Вставка
  • Опубліковано 6 січ 2025

КОМЕНТАРІ • 101

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

    🎓 New Course Available! "Scrollytelling 101": store.thecodecreative.com/scrollytelling

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

    📖 Download my FREE "Google Search Secrets for Developers" Cheat Sheet:
    store.thecodecreative.com/google-secrets-cheat-sheet

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

    This is explained so cleanly and simply... love it!

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

    Join "The Code Creative Community" group on Facebook: facebook.com/groups/thecodecreative

  • @onyinyechichukwuma689
    @onyinyechichukwuma689 5 місяців тому +1

    Simple and elegant explanation!
    Thanks. ❤

  • @jamesmyers3903
    @jamesmyers3903 2 роки тому +2

    Your a champion of teaching. I really appreciate your work!

  • @broken-wings391
    @broken-wings391 Рік тому +1

    The best explanation i ever got!! BEST VIDEO

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

    Finally after 3 hr I find the solution
    Thank You SO much

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

      Hi Tirth, glad to hear it! Feel free to subscribe if you like. I've got a bunch of new videos coming soon 👍🏻

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

    Found a clear and super easy implementation of Infinite Scroll after 2 days. Thanks man!

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

    This is awesome, perfect explantion. Saw before this video something on MDN was much more complicated.

  • @spooder-mon7191
    @spooder-mon7191 3 роки тому +1

    0 dislikes, that's shows the quality of content, thanks man

  • @nasreenkhalid6957
    @nasreenkhalid6957 3 роки тому +2

    This was one of the most easiest solution I could find..thanks so much :)

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

    Wow, friend suggested an api for this, but this seems so much more simple!

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

    Great!! I loved the way you narrated the whole stuff in an easy way....waiting for the next video....

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

    To subscribe to the channel: ua-cam.com/channels/mOpHGj4JRWCdXhllVTZCVw.html

  • @石楷圻
    @石楷圻 3 роки тому +1

    thank you!!! finally learned how Infinite Scroll works!!! thank you!

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

    Dont stop making tutorials, very nicely explained. Thank you

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

    Simple and thorough. Thank you!

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

    Amazing tutorial! Very Simple Easy And Informative! Keep up the good work!

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

    Your tutorial is just amazing bro 😍

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

    that was really amazing explanation on scroll!!
    thanks a lot!🙌

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

      Glad you enjoyed it! If you want more videos on scrolling, here's a playlist for you: ua-cam.com/play/PLMPgoZdlPumenunSVF3n9Z4Uil13vcH5o.html

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

      @@TheCodeCreative that's really amazing! Thanks alot ser!
      your teaching style is really what makes the difference and i loved it.

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

      @@yashsolanki069 👍🏻👍🏻👍🏻

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

    crystal clear, thank you sir.

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

    What a clean explanation, just subscribed right away! I wish you success. I'll check your other videos too. 😊🖤

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

    This was really helpful. Now all I need to do is figure out how to “unload” some of the old content that has been scrolled past so that the site doesn’t get bogged down.

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

    Perfect! Keep going sir.

  • @christian-schubert
    @christian-schubert 3 роки тому +1

    Found your channel yesterday, watched through a couple of your videos and already subscribed. It's an absolute gem and criminally underrated!
    However, for lazy loading images, I'd suggest using the Intersection Observer API instead of a Scroll-EventListener.
    Whereas the latter is called infinitely whenever the page is being scrolled, an Intersection Observer is only ever called once whenever a certain element is intersected (and can also be disconnected when no longer needed). I think you used to need a polyfill for Safari browsers, however, according to caniuse, the API is meanwhile supported.

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

    Great explanation

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

    But if we keep on adding images Innova root element then would it not create like there will be infinite images in our page and they will create the problem in the performance

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

      Hi Prashant, yes, of course. As I mention in the video, this demonstrates the basic concept which you can then further develop and optimize.

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

    Can i copy the code for myself and see if it works for me? I tried using the same url for the avatar images and it doesnt work for me.

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

      Someone else had mentioned that the avatar API was no longer active unfortunately. But, hopefully, you can try the same code using a different API.

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

    Great Work !! Just curious to know which font you are using?

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

    Gem to the development society

  • @PIYUSH-lz1zq
    @PIYUSH-lz1zq 2 роки тому +1

    Can you make video real world questions like comments system,advance filter ,folder structure etc please... these were asked in interviews

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

    Hello the creative code,
    Very cool tutorial.
    May you please make an other tuto using MySQL and PHP ?

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

    Hello! Please I wanted to ask if you know of any fix for infinite scroll working on mobile phone browsers. I just tested the code, but it doesn't seem to work on chrome mobile browser and is not consistent on firefox browser. I will appreciate your feedback. Thanks

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

    Awsome video, really "down to the earth" explanation, I have definently subscribed :-) .. I was looking for the video you say in the video that would come at a later point, explaining how to add a loading function, but I cannot seem to find it?

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

      Hi Stig, thanks! I might not have gotten to make that video you mention yet but I'm gonna reconsider it now :-)

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

      @@TheCodeCreative That would be really great .. maybe perhaps combined with an example where loading JSON? :-)

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

      @@TheCodeCreative ,
      Your content is very good. But that api is no longer exist. Could you please provide new one. Thanks in advance! :)

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

      @@iamvikasrathod Thanks Vikas, I'll look into that!

  • @karina.kiraz99
    @karina.kiraz99 3 роки тому +1

    THANK YOU! Yeah it works but i have a problem. In the first line of JS is showing an error like (i wrote (const column = document.querySelector('.column') ) and its an error -> Parsing error: The keyword 'const' is reserved :/

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

      Are you getting this from ESLint?

    • @karina.kiraz99
      @karina.kiraz99 3 роки тому +1

      @@TheCodeCreative i didn't check that.. what can be a problem in ESlint? (Brackets)

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

      @@karina.kiraz99 Can you post your code on codepen? I'm not sure why you're getting the error. I don't see a problem with using the "const" keyword based on your example.

    • @karina.kiraz99
      @karina.kiraz99 3 роки тому +1

      @@TheCodeCreative hope you will help me :D maybe i just made some mistaces in my code, cause pictures(infinite scroll) are not showing good :/

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

      @@karina.kiraz99 Post up your code on codepen and I'll take a look

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

    thank you

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

    adorable avatar site ain't giving accessing...can anyone help???

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

    facebook and the others you mentioned doesn't actually have "infinite scroll", since they simply grab content from a database and add it into the body. The quickest way to know if an application has infinite scroll is, if you scroll to the very top and still continue to scroll upwards, new content should be added to the top of the page until you stop scrolling.

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

      So in essence, this video like most others don't show actual infinite scroll and is thus misleading.

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

    Fantastique

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

    COME MY HOME AND TEACH ME ME AS I AM LORD ABHISHEK, LORD OF ENTIRE UNIVERSE

  • @hastag_developers
    @hastag_developers 10 місяців тому +1

    loved it

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

    Excellent job!

  • @VaibhavSharma-zj4gk
    @VaibhavSharma-zj4gk 4 місяці тому +1

    thank you

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

      Thanks for watching! Let me know what other topics you'd like to see covered.