You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- **Long Animation Frames (LoAF)** — browser reports frames taking longer than 50 ms with richer script attribution (Chrome 123+, Edge 123+).
255
255
256
-
Both freeze detectors are enabled by default. If one API is unsupported, the other still works.
256
+
Both freeze detectors are disabled by default. If enabled and one API is unsupported, the other still works.
257
257
Each detected freeze is reported immediately with detailed context (duration, blocking time, scripts involved, etc.).
258
258
`thresholdMs` is an additional Hawk filter on top of browser reporting. Hawk emits an issue when measured duration is equal to or greater than this value. Values below `50ms` are clamped to `50ms`.
259
259
@@ -308,8 +308,8 @@ const hawk = new HawkCatcher({
308
308
|--------|------|---------|-------------|
309
309
| `errors` | `boolean` | `true` | Enable global errors handling (`window.onerror` and `unhandledrejection`). |
310
310
| `webVitals` | `boolean` | `false` | Collect all Core Web Vitals and send one issue event when at least one metric is rated `poor`. Requires optional `web-vitals` dependency. |
311
-
| `longTasks` | `false` or `{ thresholdMs?: number }` | `{ thresholdMs:70 }` | Detect long tasks and emit issue events when duration is equal to or greater than the max allowed duration (`thresholdMs`, minimum effective value is`50ms`). |
312
-
| `longAnimationFrames` | `false` or `{ thresholdMs?: number }` | `{ thresholdMs:200 }` | Detect LoAF events and emit issue events when duration is equal to or greater than the max allowed duration (`thresholdMs`, minimum effective value is`50ms`). Requires Chrome 123+ / Edge 123+. |
311
+
| `longTasks` | `boolean` or `{ thresholdMs?: number }` | `false` | `false` disables. `true` enables with default threshold. Object enables and uses `thresholdMs` when valid; otherwise fallback threshold `70ms` is used (minimum effective value `50ms`). |
312
+
| `longAnimationFrames` | `boolean` or `{ thresholdMs?: number }` | `false` | `false` disables. `true` enables with default threshold. Object enables and uses `thresholdMs` when valid; otherwise fallback threshold `200ms` is used (minimum effective value `50ms`). Requires Chrome 123+ / Edge 123+. |
0 commit comments