Search results page causes Sourcegraph tab to freeze in Firefox
Created by: mrnugget
- Sourcegraph version: k8s.sgdev.org
- Platform information: macOS, Firefox 68.0 (64-bit)
Steps to reproduce:
- Open https://k8s.sgdev.org/search?q=route533+index:only
- See no results
- Wait for 5+ seconds
Expected behavior:
I can continue using the site, by clicking links in the UI for example
Actual behavior:
Site freezes, can't click on links anymore, Firefox shows a warning "this web page appears to be slow"
Debugging info
This appears to only happen on the results page and it seems like only when it's empty
I tried to capture a performance profile in Firefox but the browser froze when trying to save it. What I could see before saving was a lot of calls to setInterval
.
Since the status messages for the global cloning indicator are polled, I disabled that feature to see if it's the reason for the freeze. But even with that disabled and no requests happening in the background, the site freezes.
(I don't know who to assign this too, feel free to reassign @nicksnyder @christinaforney)
It also seems to be related to https://github.com/sourcegraph/sourcegraph/issues/4755