How to create website page where content will load automatically after every page scroll?
We can achieve this by using "scroll" event listener where callback function checks if scroll position is near the end of the page then it will load more content. Below is the code snippet:
Looking for change? Click below to prepare for technical interview.
Technical Interview Questions