JavaScript Pagination in ~10 Minutes (Super EASY!!)

preview_player
Показать описание
Improve your website's user experience by learning Pagination in JavaScript. This video takes you step-by-step through the process, using a dummy JSON API for products as an example. Learn to avoid loading too much data at once, and instead deliver a smoother, faster browsing experience. We'll explore a few different way to handle pagination: client-side, statically generated pages, and server side rendered pages.

*** Resources ***

**DISCORD**

**STAY IN TOUCH 👋**

**QUESTIONS ABOUT MY SETUP**

00:00 Introduction
01:24 Pagination Explained with Diagrams
05:42 Client-side Pagination Demo
08:35 SSG Pagination with Astro
11:45 SSR Pagination with Route Parameters
12:25 Astro Course and Outro
Рекомендации по теме
Комментарии
Автор

With was an awesome in a myriads of ways.
- Presentation
- clarity
- pace
- etc!
Thank you!

gioba
Автор

Always always always love your content James.


Great work

CreativeTutorialsWeb
Автор

skip/limit is pretty bad if you have a lot of rows. The database is actually iterating through all the items until it reaches the last item to skip. It's better to have some sort of index to use as a reference and fetch only the rows that have an index bigger than the reference index + limit

soniablanche
Автор

The perfect explanation doesn't exi-
but i thought that pagination is something where there are buttons 1, 2, 3 til the end and u click one of them and go to a page. never thought it was a single page thing too

melodium
Автор

Love it! I’ll be looking forward to learning more about Astro in September!🤘🤘

PJlikePajamas
Автор

Amazing. Do you have a tutorial for a blog with React and Firebase (or other DB)?

AndreSpecht
Автор

How about cursorbased 0:44 pagination? And 'infinitive' data like dates.

gliderguld
Автор

what is the vs code theme you are using?? please mention

codegenesis
Автор

For the 1st kind of pagination that you mentioned, why not just pass the page number instead of the skip and calculate the skip server-side?

Joe-SoftwareEngineer
Автор

For your Astro course, if you include how to deploy it to prod. Aka the web, I will buy it.
I can get projects to run locally but as soon as it’s time to deploy I get lost.

la
Автор

but what if the url not have limit and skip query

simoid
Автор

c'est pas plus facile getjson => create tab => read 10 first elements ?

defaultname
Автор

James, how much money Astro pays for your ad?

qpypqki
Автор

You can tell this guy has never worked on a production database before

jasonwelsh