Skip to main content

What it flags

A loop reads layout metrics and mutates DOM styles or classes, forcing a reflow on each iteration. For a binary search that writes a text prefix, measures that same element and uses the measurement to shrink the search interval, the rule gives contextual advice. Review whether an off-DOM measurement can preserve the result. In this pattern, the next prefix depends on the current measurement.

Configuration

Set the rule to "off" in loadwise.config.json to drop its findings: