Skip to main content
cngx-src documentation

CNGX_LOADING_DEFAULTS

Variablecore/utils

projects/core/utils/loading-config.ts

Description#

Library defaults for CngxLoadingConfig. English/neutral values; a 120ms show delay suppresses sub-perceptual blips, a 400ms min-dwell keeps a shown indicator on screen long enough to read, an 800ms cutoff splits a spinner-worthy wait from a skeleton-worthy one.

Type#

unknown

Default value#

{
  showDelay: 120,
  minDwell: 400,
  spinnerVsSkeletonCutoff: 800,
} as const satisfies CngxLoadingConfig