I thought Lazy Loading and infinite scrolling are same things, But today I heard that these are two different things. Is that true?
Lazy loading refers to deferring the loading of any kind of content until it becomes necessary. For example, on a lengthy page, images that are not currently visible do not need to be loaded. They are fetched from the server only when the user scrolls the page over or near them.
Infinite scrolling refers to the loading of new content when the end of the page is reached, creating the effect of an infinitely long page (mostly to avoid tedious paging).
So yes, they are different but related.
Infinite Scrolling is one of the methodology by which we can achieve Lazy Loading.
Lazy loading means the request for the resource or records will be made only when they are demanded.
In case of Infnite Scrolling ,the request for the next set of records will be made only when scroll bar reaches bottom of th grid and fires request to load the next set of records.
So,well you can consider Infinite Scrolling is the technique by which Lazy loading is achieved.
Note: Infinite scrolling is not only the way to achieve Lazy Loading. there are many other ways of achieveing it. For ex: Demand Paging
Hope this helps..Thanks
© 2022 - 2024 — McMap. All rights reserved.