Lazy Loading with JavaScript, Express & MySQL

preview_player
Показать описание
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.

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.
Рекомендации по теме
Комментарии
Автор

is this applicable with app that uses ejs template?

nathannathan
Автор

Have you tried new Intersection API ? It's much easier to implement data fetching on scrolling, and much prettier than window.onscroll(). I love the video, you explained everything great, keep up the good work man ;)

hemicar
Автор

please perform insert, update delete operation with infinite scroll with react mysql, node.js

muhammadali
Автор

Please can you make one that works with mongoose and EJS? I pick data from my mongodb with mogoose and send data to EJS file and i've been having troubles replicating this your solution. If you have a course that covers this on udemy point me to it and i will buy

CeejayCharles
Автор

Can you do a similar video but with mongodb?

siddhantbhardwaj