Closed viictorcamposs closed 1 year ago
Next.js 13 provides a way to enable instant loading of pages by using Streaming UI and Suspense boundaries.
I'm using this feature by creating a loading.js file inside the /deputado-federal route and adding a skeleton for the table.
loading.js
/deputado-federal
This way, even if the user has a poor internet connection, we can display something on the page to let them know there's content being loaded.
network
Slow 3G
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Description
Next.js 13 provides a way to enable instant loading of pages by using Streaming UI and Suspense boundaries.
I'm using this feature by creating a
loading.js
file inside the/deputado-federal
route and adding a skeleton for the table.This way, even if the user has a poor internet connection, we can display something on the page to let them know there's content being loaded.
How to test
network
tabSlow 3G
throttling/deputado-federal
pageImages