Skip to content

Conversation

@sovdeeth
Copy link
Member

Having all the syntax cards rendered caused lag when filtering, so this implements virtual scrolling (only the visible items + a few are rendered, and this virtual window is updated as the user scrolls). Performance is noticeably faster, esp on dev server.

Also implements sync sidebar scrolling, better jump-to behavior, and highlighting the currently viewed syntax in the sidebar

To achieve this, I pulled a lot of code into SyntaxDisplayManager, which now collates all the filter info and handles the all the display and scroll logic

I utilized clause a lot for initial development due to my limited domain knowledge, though all code is now either rewritten or verified. All comments are my own. Please double check the design/details.

@sovdeeth sovdeeth added the enhancement New feature or request label Dec 27, 2025
@APickledWalrus APickledWalrus merged commit 0a0a19c into feature/starlight Dec 28, 2025
@APickledWalrus APickledWalrus deleted the feature/starlight-virtual-scroll branch December 28, 2025 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants