Skip to main content
cngx-src documentation

CngxLoadingConfig

Interface

projects/core/utils/loading-config.ts

Import#

import { CngxLoadingConfig } from '@cngx/core/utils'

Description#

Loading-feedback tuning: the visibility-gate timings shared by every surface that gates its visibility through createVisibilityGate, and the indicator-selection thresholds a consumer reads to choose one loading treatment over another.

Index#

Instance Properties#

minDwell#number

Minimum time in ms a loading surface stays visible once shown, to avoid a jarring flash-out.

showDelay#number

Delay in ms before a loading surface becomes visible. Operations faster than this never flash.

spinnerVsSkeletonCutoff#number

Duration in ms above which an app-shell indicator should prefer a skeleton over a spinner. A consumer compares an observed busy-envelope duration (e.g. createLatencyProbe().lastDuration()) against this cutoff.