Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change a slow querySelector to a getElementById #583

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gregtatum
Copy link
Member

This is a comparison profile, the top track is the old behavior, the bottom is the new.

https://perfht.ml/2HrBpR0

/cc @maxxcrawford

@gregtatum
Copy link
Member Author

Also, please manually test this, as it didn't break on my end, but I'm not sure if there are bugs I'm not aware of.

@whimboo
Copy link

whimboo commented Feb 12, 2021

We also get bugs filed mentioning slow downs with scrolling on various pages. Here one example: https://bugzilla.mozilla.org/show_bug.cgi?id=1684286

This PR is laying around for more than a year now, and should help making the extension more performant. @maxxcrawford can we please get it reviewed?

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.

2 participants