Skip to content

Landing mid-way down a long listing takes no long task in Firefox #6482

Open

Description

@max-sixty

Landing in the middle of a long listing, by End, a search hit or travel, costs Firefox about 100 ms of main thread over the next two frames, including one 53 ms task. Measured on leaf-dev bench document --sizes 512 --browser firefox (about 32k lines) at e2db751, where halfway makes such a landing before the wheel steps (#6480).

About 256 runs report their content-visibility state for the first time, and lf-text-document's unpaint rebuilds every colour's highlight each time it recolours a run. Highlight.add takes 59 of the 100 ms. Rebuilding each highlight once a batch, or skipping a recolouring whose tokens match the first paint, would cut the pause inside the widget, with no new mechanism. Later wheel steps spend nothing on colour.

It is a one-time pause on a path readers take rarely. Trigger: a reader notices the pause, or leaf-dev bench times a landing and shows it.

This was written by Claude Code on behalf of max-sixty

Activity

  1. added
    backlog
    etc
    ux
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogetcux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions