Skip to content

Home renders the hidden mobile "Recent" list with every thread on desktop #5419

Closed

Description

@kr3t3n

Summary. On desktop, the Home page renders the compact-layout "Recent" section (section[data-root-compose-mobile-recents]) with display: none, and that section lists every live thread. With about 4,450 threads this adds about 63,000 DOM nodes to Home. The list is not visible and is not virtualised or capped.

Environment. bb 0.46.0, web surface (127.0.0.1:38886), Chromium 1208 on Linux, 1400 × 1000 viewport. About 4,900 live threads, most created by automations.

Steps.

  1. Open Home with a few thousand live threads.
  2. In DevTools, run document.querySelector("section[data-root-compose-mobile-recents] ul").children.length, then document.getElementsByTagName("*").length.
  3. Open any thread and run the second query again.

Observed.

  • The hidden list has 4,453 <li> rows, one per thread, each with a provider icon tile and a closed Radix state (data-state="closed"). Its section computes to display: none, height 0.
  • The page has 65,069 elements on Home and 2,111 with a thread open.
  • Any script that queries or observes the document (including plugin content scripts) pays for the hidden subtree on every pass. In our profile, querySelectorAll calls from content scripts and style recalculation took a large share of each sidebar update while Home was open.

Expected. The compact Recent list mounts only in the compact layout (for example behind the same media query that hides it), and a long list is capped or virtualised.

Related. #2758 reworked the compact mobile Home and Recents.

Activity

  1. added theissue type on Oct 13, 2026
  2. added
    ui
    confirmed-repro
    on Oct 13, 2026
  3. bb-slop-cop commented on Oct 13, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Classification: Bug · Priority: Medium · Effort: Low · Labels: ui, perf, confirmed-repro.

    Report: https://get-bb.github.io/reports/issues/5419.html — REPRODUCED, high root-cause confidence. Repeated the failing DOM regression in two clean checkouts of trusted main.

    Root cause: The desktop Home layout mounts compactScrollContent; CSS hides the Recent section without removing its unbounded rendered subtree. The report does not claim to reproduce the original element totals or profiling timings.

    Fix: #5420 — ready, not merged. Removes only the desktop mount; compact rendering remains intact. The regression fails before the fix and passes afterward; 44 relevant tests, lint, typecheck, and diff checks pass. Two files, 41 changed text lines. Mobile list capping/virtualization remains outside this minimal fix.

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

    confirmed-reproperfui

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions