简体   繁体   中英

Javascript Load more on scroll

I have 30 div rows blocks in a page. Firstly I want to show only 5 rows and when user scrolls to 5th row then start loading next 10 rows. Repeat same till the end of the content. In case of delay in content loading then show "Loading more products.... ".

This is called "lazy load". You can search for it to see how you can implement it to your project.

Here one jQuery plugin for such as things

http://www.appelsiini.net/projects/lazyload

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM