Lazy Loading with JavaScript, Express & MySQL

Опубликовано: 16 Февраль 2025
на канале: Nsquared Coding
2,710
55

In this video, we will implement infinite scrolling to load data from the backend as the scrollbar reaches the bottom of the web page.
Infinite Scrolling is another way to paginate your data to prevent loading it all at once.

Api: https://jsonplaceholder.typicode.com/...

In order to follow along with this tutorial, you'll need to have xampp, nodejs, and gitbash installed if you don't already.
We will be grabbing our data from the json placeholder api and storing that into our database.
Then we will write a query to retrieve the posts data every time the scroll bar reaches towards the bottom and dynamically insert the html using javascript.