Hey team, When using the `<Descope>` compon...
# ask-a-descoper
l
Hey team, When using the
<Descope>
component from
@descope/nextjs-sdk
, we’ve noticed it takes around 3–5 seconds to load initially. During that time, the login page appears blank, which isn’t great for user experience. Is there a recommended way to improve the UX while the component initializes?
m
did you try using the
isSessionLoading
? https://docs.descope.com/getting-started/nextjs
l
We’re using
isSessionLoading
in other parts of the app, this specific case is just the login page. From our understanding, the
<Descope>
component should load instantly here, right? Or is there something else that could be causing the initial delay?
This case is specifically about the initial render of the login page (not after authentication)
Logs observed during initial render: •
Rendering a flow screen
•
Fetched theme { dark: {...}, light: {...} }
•
DescopeUI was loaded
•
onReady
from Descope fires (we see our log) Behavior: Until these steps complete, the
<Descope>
component doesn’t render on the login page.
Hey team, Just following up on this, when using the
<Descope>
component from
@descope/nextjs-sdk
, we’ve noticed it takes around 3–5 seconds to load initially. During that time, the login (unauthenticated) page appears blank, which isn’t great for the user experience. Could anyone take a look at this problem?
m
@Atharva Joshi can you follow up here?
a
let me check
The descope components are rendered once they are downloaded and it doesnt take longer than a couple 100 ms the problem may occur if your experiencing network latency issues but if you are facing them more frequently, could you send an SS of your network tab when the page loads?
m
I suggest you Also upload HAR file to ticket
l
Thank you, i have provided both the screenshots and the HAR file to TKT-903.