Skip to content

Minimize CPU-hungry sidebar drag operations#2668

Merged
simon04 merged 1 commit intofreeCodeCamp:mainfrom
spamguy:sidebar
Mar 28, 2026
Merged

Minimize CPU-hungry sidebar drag operations#2668
simon04 merged 1 commit intofreeCodeCamp:mainfrom
spamguy:sidebar

Conversation

@spamguy
Copy link
Copy Markdown
Contributor

@spamguy spamguy commented Mar 27, 2026

This makes an effort to fix slowdowns caused by dragging the sidebar. Fix suggested and implemented by Claude Code. Closes #1542 .

The following CPU profiles are from Firefox for Windows, dragging the sidebar left/right with lodash docs open.

Before (13 sec)

image

After (23 sec)

image

The 98% CPU usage points are still there, but visibly less frequently.

@spamguy spamguy requested a review from a team as a code owner March 27, 2026 23:29
Copy link
Copy Markdown
Contributor

@simon04 simon04 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, very much appreciated!

@simon04 simon04 merged commit e894da2 into freeCodeCamp:main Mar 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resizing the sidebar is atrociously slow

2 participants