Commit 3357072
perf(rule): resolve rule results synchronously instead of via setTimeout(0)
The setTimeout(0) wrapper around resolve(ruleResult) created 335 macrotask
transitions per scan. On large DOMs with advance ON, these interleave with
concurrent DevTools IPC calls (resource.getContent), inflating axe.run
from ~14s to ~85s. Resolving synchronously eliminates the contention.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 52f726f commit 3357072
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
318 | 317 | | |
319 | 318 | | |
320 | 319 | | |
| |||
0 commit comments