The Github website is extremely slow on Safari #170758
-
Select Topic AreaBug BodyOver the past few months, Github has been getting slower and slower on Safari. It has now reached a point where it is unusable. Displaying any pull request with more than a thousand lines changed or even browsing any file with a thousand or more lines of code is fully broken. What happens:
I have a 16-inch MacBook Pro with a 16-cores Apple M4 Max and 48GB of RAM, using it plugged-in with performance mode enabled. It's one of the most powerful laptops on the market today. Github is the only website I know that doesn't run on it. This is Safari specific, Google Chrome on the same machine performs way better (although it still struggles with very large pull requests). I'm using Safari 18.6 (20621.3.11.11.3) on macOS Sequoia 15.6 with no extensions installed. |
Beta Was this translation helpful? Give feedback.
Replies: 35 comments 63 replies
-
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
Having the same issue, where GitHub got slower and slower in safari. For bigger PRs I can't edit anything or press on any buttons. Seems like such a big page breaks something? I also disabled all content blockers and plugins for GitHub, didn't change anything :/ (using an M3 Pro Mac with 18GB Ram) |
Beta Was this translation helpful? Give feedback.
-
Same here. Even small PRs I can't do anything. Adding reviewers, adding labels, etc... every action on the page takes many seconds. The page often locks up as well. This wasnt an issue a few weeks ago. |
Beta Was this translation helpful? Give feedback.
-
Same - I don't know what's driving the engineering behind this, but it is embarrassing. It's just getting slower and slower for no appreciable benefit. |
Beta Was this translation helpful? Give feedback.
-
Same problem over here. Renders GitHub completely useless. Nothing works. Totally frozen. |
Beta Was this translation helpful? Give feedback.
-
AFAICT this extends to all API actions triggered by the UI. Case in point, I just went to subscribe to this issue in Safari, and it took more than 20 seconds before the button state switched to "Unsubscribe". I'm now writing this comment in Chrome... 👎 |
Beta Was this translation helpful? Give feedback.
-
Our team has noticed this as well, very sluggish UI in general. Especially noticeable on pull requests and autocomplete boxes like |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
It only took about a year to go from visibly slow but usable to now annoying and completely unusable. I had to install a 3rd-party app on my Mac to automatically open all GitHub URLs in Chrome. ¯_(ツ)_/¯ |
Beta Was this translation helpful? Give feedback.
-
This is probably related to some type or combinations of CSS selectors. |
Beta Was this translation helpful? Give feedback.
-
For folks looking for a temporary workaround to add labels in Safari: After creating the issue/PR go to the |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Does this happen with the New Files Changed experience only, or does it happen no matter what you have that set to? It's a preview feature you can turn on and off by going to "Feature Preview" when you click your avatar icon. |
Beta Was this translation helpful? Give feedback.
-
As someone who writes bugs for a living I'm careful to complain. That said, this has become a real pain point for me, personally. It's not uncommon for me to do the following things opening a PR:
I do this several times a day and within the last few weeks the page will lock up every time. Sometimes I'll refresh the browser and even that takes a while to perform. Historically I've had no issues with this in Safari. |
Beta Was this translation helpful? Give feedback.
-
Better slow than not loading at all. E.g. https://github.com/pannous/hieros/wiki/1 "The wiki page took too long to render." 2600 characters in 10 seconds should be doable despite unicode? |
Beta Was this translation helpful? Give feedback.
-
vibe-coded. |
Beta Was this translation helpful? Give feedback.
-
I’m also seeing this slowdown quite a bit. For me it’s been noticeable on Safari for a long time, especially in PRs, but over the past few days the entire site feels sluggish as hell. Chrome is much better. (For context: I was previously a PM at GitHub and often advocated for and discovered Safari bugs during my time there, so hopefully anyone on staff here who knows me will understand I’m not posting lightly!) |
Beta Was this translation helpful? Give feedback.
-
I am also experiencing the similar rendering issue in safari |
Beta Was this translation helpful? Give feedback.
-
As a Safari-only user, I didn't know it was a problem only occurring on Safari. I'm not having problems on any other sites so it's probably GH. What's more interesting is that one of the top sites used by programmers is not testing one of the most common tasks on the website with one of the most common browsers. Hope it gets fixed soon. Any large PRs is unworkable with Safari. |
Beta Was this translation helpful? Give feedback.
-
Browser native back button is broken on iOS safari too. When the one navigate source code usually it doesn’t do anything but change url. Hitting back several times with no effect and reloading page in disgust leading to jump to arbitrary url in history. Reconsider your approach to frontend development, please |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as disruptive content.
This comment was marked as disruptive content.
-
I’m on an M1 Mac and search within files is almost unusable with safari |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
The problems seem solved for me, I'm using linux with chrome 140 beta |
Beta Was this translation helpful? Give feedback.
-
I also think the issue has been resolved. For more than a week I wasn't able to submit a PR because the PR creation was lagging that much (latest beta of macOS 26.0) and I was forced to use github CLI but today I was able to get back to the old workflow using web. |
Beta Was this translation helpful? Give feedback.
-
This has NOT been resolved. 6 different browsers on linux and they all run like crap on here. It's barely usable. |
Beta Was this translation helpful? Give feedback.
-
I still experience many significant performance issues across the application in Safari. I don’t think it’s even limited to Safari though. The new PR review page for example takes just over 10 minutes to load if you have 300 files in the PR. |
Beta Was this translation helpful? Give feedback.
-
I am sorry but there is no reason it should take 10 seconds for quite literally every single link on this website with even a marginal amount of code to load. Not only that, half of the time it does not even render. My first thought was a might as well use the desktop app because maybe that is written in native Swift and maybe it performs better. You cannot even browse through repositories in the native app. What is the point of it then?! |
Beta Was this translation helpful? Give feedback.
-
Anyone saying this is fixed is obviously not working with PRs larger than a handful of files. Try scrolling down on this page. https://github.com/joeldrapper/large-pr-demo/pull/1/files?new_files_changed=true Your React is obviously doing some kinds of O(n²) re-rendering. That page takes 10 minutes to load. Every time a new file loads, it re-renders all the files. It’s so badly done. React is a hot pile of garbage when it comes to state management but some muppet at GitHub picked it so you’re going to have to suck it up and make it work, or insist on building this component in something good like Svelte or Solid. You need to use an intersection observer to only render the files that are scrolled into view. And you should use the custom highlight API to highlight ranges of text on the GPU rather than adding hundreds of thousands of |
Beta Was this translation helpful? Give feedback.
Thanks for looking into this, @karlcow (and for the fixes you made).
The team identified a change that shipped last week (to a component that exists on most GitHub.com pages but is not visible by default) involving
:has()
selector which appears to be the cause of the regression. The fix was to switch from CSS-based conditional styling to JavaScript (this rolled out about 1 PM ET today).Let us know if you're still seeing this problem after doing a hard reload of the page(s).