-
Notifications
You must be signed in to change notification settings - Fork 83
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
Browser locks while loading Lodash docs #45
Comments
It looks CSS related but not sure what's causing it (there's plenty of places for it to buckle down on). |
In glancing through the JS, it may be related to initializing React state
|
If I remove all JS on the page it still locks up. If I remove the CSS the page loads w/o locking up. |
If you come up with anything let me know. |
Just stumbled upon the same issue, disabling the CSS helps. From quick "performance" run that I was able to do in Firefox, it spends a lot of time in styles. |
\cc @bzbarsky |
My initial thought was similar to @calvinf's: maybe initializing the react state by reading, parsing the DOM was locking it up and retriggering layouts. However, it's heavy layout cycles of 40-80ms causing this that are triggered before the initial render from docs.js. In screenshot below, initial evaluation of the javascript is the blue bar, and sub-details, on the right. The layouts are the purple blocks. |
And in particular, it's something about the combination of flex from main.css and something the fontawesome stylesheet is doing that causes the slowdown in Firefox. Not clear what yet. |
@bzbarsky Thank you so much for digging into this! |
@jdalton Thanks for letting me know about it! |
It's getting slow again! In chrome. |
Nothing has changed on our end. If you think it's a Chrome regression you're better off filing the bug with Chrome since I'm not going to do any work on this. |
@jdalton, It's become completely unusable for me. Locks up for a minute. |
I've got nothing actionable here, sorry. The source hasn't changed so unless you investigate and create a PR the situation will likely not improve for you. I'm locking the thread since "met too" comments without a patch or further info don't really help. I've visited the docs in Chrome plenty of times and have never had a problem. I checked with Firefox 60.0.2 and it loads quick too. |
When I load the Lodash docs, my browser freezes for several seconds.
Repro steps:
Something about how the docs are being loaded is slowing things down. I haven't had time to dig in and find out why.
The text was updated successfully, but these errors were encountered: