Next.js Discord

Discord Forum

Simulate slow network connections / loading screens

Answered
tyteen4a03 posted this in #help-forum
Open in Discord
I want to look at how my loading.tsx is working, but my pages are all loading very fast. How can I arbitrarily slow down some parts of the page so I can see the loading screen in action?
Answered by B33fb0n3
You have three different options:

1. Own Delay: via
await new Promise(resolve, setTimeout(resolve, 5*1000)) // 5 seconds delay

2. You can also trigger the suspsense boundary through dev tools
3. You can also slow down the loading of the page though dev tools
@tyteen4a03
View full answer

6 Replies

You have three different options:

1. Own Delay: via
await new Promise(resolve, setTimeout(resolve, 5*1000)) // 5 seconds delay

2. You can also trigger the suspsense boundary through dev tools
3. You can also slow down the loading of the page though dev tools
@tyteen4a03
Answer
@tyteen4a03 solved?
@B33fb0n3 <@114557048678514693> solved?
yep, thanks!
happy to help
@Lionhead how i can enable from dev tools?
Cornish Rex