The standard WordPress list pages are displayed using the archive.php template of the theme. The default list displays a fixed number of posts on the initial page view, along with the pagination buttons or links. The viewer has to request the next set of posts by using the pagination buttons or links. The request for the next page is generally handled by a GET request with a page refresh.
Lazy loading posts, where the data is only retrieved when the user is actually viewing the data in the browser, is the modern trend. Lazy loading is preferred to the standard process due to the following advantages:
- Improvement in initial page loading time
- Reduction in the size of the initial page load
- Users automatically see as many results as they want without needing to manually request the next set of data
The lazy loading technique is widely used in social...