perf(web): reduce first-load jank with chunked rendering and infinite scroll#1070
Open
scoful wants to merge 4 commits intoanomalyco:devfrom
Open
perf(web): reduce first-load jank with chunked rendering and infinite scroll#1070scoful wants to merge 4 commits intoanomalyco:devfrom
scoful wants to merge 4 commits intoanomalyco:devfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The models table currently renders a very large DOM on first load.
On lower-spec devices and some server environments, this causes visible UI stalls, high CPU usage, and poor first-interaction responsiveness.
In addition, table column logic was duplicated across multiple places (header rendering, sorting, search text building), which made changes
error-prone and harder to maintain.
What this PR changes
/api.jsonwith/_api.jsonfallback.CHUNK_SIZE = 100) to avoid blocking the main thread.IntersectionObserver.IntersectionObserverso all rows still render (no partial-data regression).columns.ts) and uses it for:colSpanswitch/casesort logic with typed accessor maps.Why this should be merged
Validation
cd packages/web && bun run buildpasses.Scope