How to apply lazy-loading on text

javascript

#1

I am developing a simple user interface, in which I want to add lazy-loading concept on the text using ‘vanilla’ JavaScript. I this right now I am displaying information about 10 users only. When I am going to scroll down I want to load the rest of the information. For that, I find out the current scroll position. If it reaches the bottom, want to append next data to existing one. I tried to append the simple text,It worked. But it is unable to append elements from div. How should I rectify that codeThanks…!!


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.