Thursday, August 26, 2021

Infinity

 Ever wonder how nfinite scrolling is achieved. Or the ability to add more

items on a clothing site. All on the same page, as the scroll function illustrates.

One merely goes to fetch more.


I have added red text to the load function


itself. So there can be changes as time goes on...






The views page has a wait time of 1 second; I tried running it at 5 and sure enough, it then

takes 5 seconds for the first 20 to load, then another 5 for the next...


*     *     *
One can also use the server as an API,and specify start and end points What comes

back is Json data Below, I asked for posts?start=1&end=10:



No comments: