Aryan Bhandari
12/22/2025, 5:00 AM@descope/react-sdk
Issue:
The initial load takes noticeably long , even when the user is already logged out. This causes a visible delay before routing or rendering the login screen.
Questions:
• Is this expected behavior during Descope SDK initialization?
• Are there recommended optimizations (lazy loading, preloading, config flags, etc.)?
• Any best practices to reduce initial auth loading time in SPAs?Prashasth Baliga
12/22/2025, 5:04 AMAtharva Joshi
12/22/2025, 5:06 AMAryan Bhandari
12/22/2025, 5:33 AMAryan Bhandari
12/22/2025, 5:34 AMAtharva Joshi
12/22/2025, 5:57 AMAtharva Joshi
12/22/2025, 6:48 AMAryan Bhandari
12/22/2025, 7:01 AMAryan Bhandari
12/22/2025, 7:04 AMAryan Bhandari
12/22/2025, 7:05 AMAtharva Joshi
12/22/2025, 7:07 AMAryan Bhandari
12/22/2025, 1:15 PMAryan Bhandari
12/22/2025, 1:15 PMAtharva Joshi
12/22/2025, 1:38 PMAryan Bhandari
12/23/2025, 11:29 AMAtharva Joshi
12/23/2025, 11:35 AMAryan Bhandari
12/23/2025, 11:43 AMAryan Bhandari
12/23/2025, 11:45 AMAtharva Joshi
12/23/2025, 11:45 AMAryan Bhandari
12/23/2025, 11:46 AMAryan Bhandari
12/23/2025, 12:36 PMuccessfully fetched URL <https://static.descope.com/pages/P34ixVh0LRlEd09OkvD4EPsV8Aj4/v2-beta/config.json> loggerMixin.js:27:81
Got component version "2.1.17" loggerMixin.js:27:81
Injecting npm lib: "@descope/web-components-ui" with version: "2.1.17" loggerMixin.js:27:81
DescopeUI was loaded loggerMixin.js:27:81
Successfully fetched URL <https://static.descope.com/pages/P34ixVh0LRlEd09OkvD4EPsV8Aj4/v2-beta/theme.json> loggerMixin.js:27:81
Fetched theme
Object { dark: {…}, light: {…} }
loggerMixin.js:27:81
Before popup postmessage send {"isPopup":false,"isCodeChanged":false,"isExchangeErrorChanged":false} loggerMixin.js:27:81
Got a screen with id sign-up-or-in/SC2fmFlEcLGc1e8RDBhxdmQhIYzi6 loggerMixin.js:27:81
Rendering a flow screen <empty string> loggerMixin.js:27:81
Successfully fetched URL <https://static.descope.com/pages/P34ixVh0LRlEd09OkvD4EPsV8Aj4/v2-beta/sign-up-or-in/SC2fmFlEcLGc1e8RDBhxdmQhIYzi6.html> loggerMixin.js:27:81
Uncaught (in promise) TypeError: can't access property "descope-container", h is undefined
n descopeUiMixin.js:54
loadDescopeUiComponents descopeUiMixin.js:28
loadDescopeUiComponents descopeUiMixin.js:28
onStepChange DescopeWc.js:1
b tslib.es6.mjs:118
promise callback*T tslib.es6.mjs:120
uy tslib.es6.mjs:121
uy tslib.es6.mjs:117
onStepChange DescopeWc.js:1
update state.js:1
update state.js:1
setTimeout handler*fe/this.update state.js:1
onFlowChange DescopeWc.js:1
b tslib.es6.mjs:118
promise callback*T tslib.es6.mjs:120
b tslib.es6.mjs:118
promise callback*T tslib.es6.mjs:120
b tslib.es6.mjs:118
promise callback*T tslib.es6.mjs:120
b tslib.es6.mjs:118
promise callback*T tslib.es6.mjs:120
uy tslib.es6.mjs:121
uy tslib.es6.mjs:117
onFlowChange DescopeWc.js:1
update state.js:1
update state.js:1
setTimeout handler*fe/this.update state.js:1
pi BaseDescopeWc.js:1
uy tslib.es6.mjs:121
uy tslib.es6.mjs:117
pi BaseDescopeWc.js:1
update state.js:1
update state.js:1
setTimeout handler*fe/this.update state.js:1
init BaseDescopeWc.js:1
b tslib.es6.mjs:118
promise callback*T tslib.es6.mjs:120
b tslib.es6.mjs:118Atharva Joshi
12/23/2025, 12:54 PMAryan Bhandari
12/23/2025, 12:55 PMAtharva Joshi
12/24/2025, 6:26 AMAryan Bhandari
12/26/2025, 8:29 AMAtharva Joshi
12/26/2025, 8:45 AMAryan Bhandari
12/27/2025, 5:47 PMAryan Bhandari
12/29/2025, 5:15 AMAryan Bhandari
12/29/2025, 5:15 AMAtharva Joshi
12/29/2025, 6:08 AM