跳到主要内容

白屏探针配置

字段类型默认值说明
enabledbooleantrue总开关
detectionMode'normal' | 'skeleton''normal'检测模式。normal 为普通判定;skeleton 为骨架屏指纹比对模式
wait.mode'auto' | 'fixed''auto'调度模式。auto 使用 Observer 动态调度;fixed 使用固定延时
wait.minnumber(毫秒)3000auto 模式下调度保护期下限,期间 Observer 触发无效
wait.maxnumber(毫秒)6000二次检测最长等待时间(fixed 模式下为固定等待时长)
rootSelectorstring无(视口全区域)检测区域的 CSS 选择器
containerElementsstring[]['html', 'body', '#app', '#root']视为容器元素的选择器列表,传入空数组或非数组时回退为默认值
minPointsnumber1至少有几个采样点有内容才认为不是白屏

配置注意:配置模板支持嵌套解析,wait.mode 使用枚举校验,wait.min / wait.max 使用正数校验。用户只需传入需要覆盖的字段,未传字段保留默认值。