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

Page freezes when loading supporters #1241

Open
j-f1 opened this issue Nov 30, 2021 · 0 comments
Open

Page freezes when loading supporters #1241

j-f1 opened this issue Nov 30, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@j-f1
Copy link
Contributor

j-f1 commented Nov 30, 2021

Whenever I scroll the supporters list into view, the page freezes for several seconds before becoming interactive again. (Safari Technology Preview Release 135 (Safari 15.4, WebKit 16613.1.7.3, macOS 11.6 (20G165)))

I’ve attached a timeline recording, but it looks like the issue is that it takes a long time for Safari to render the 65,000 character HTML string being injected.

www.11ty.dev-recording.json.zip

I used DOMParser to pre-parse the HTML and confirmed that parsing only takes ~2ms, while inserting the node into the document takes around 12 seconds.

@zachleat zachleat added the bug Something isn't working label Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants