javascript - Please tell me how to achieve a drop-down loading effect!
代言
代言 2017-07-05 10:37:47
0
4
858

I have a lot of graphic messages, how can I achieve the effect of pulling down to load more messages?

代言
代言

reply all(4)
巴扎黑

Actually, drop-down loading also has a paging effect. When the bottom of the slide is reached or how far away from the bottom it is, Ajax requests data and appends the data to the page to achieve this effect; it is mainly due to cooperation with the background!

巴扎黑

Request data paging, monitor page height and data length, load more in real time, click to load waterfall flow data

phpcn_u1582

If it is a list page, you can follow the instructions above to reach the bottom of the request interface, or use an online plug-in like an app to elastically pull up to load more. If it is a details page, you can mainly use lazy loading of images. , resources are loaded on demand, no need to pull up to load more, and then request the interface

小葫芦

Do you want this effect?
http://www.codegong.com/categ...
The jqueryias.min.js sliding paging is used here, which feels pretty good.
Old D blog also uses this plug-in.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template