Why YouTube is so slow in Microsoft Edge (and how to fix it)

Microsoft's Edge browser has a lot of challenges in the modern web world, not the least of which is Google's Chrome browser, which is still top dog for preferred browser usage. Microsoft, though, for its part is playing by the rules – that is, adopting open and agreed upon web standards to make its browser the friendliest.

Nonetheless, if there is one complaint we all hear about (and have experienced) is the YouTube website taking what seems like forever to load in Edge. Today, we'll explain why that is and how to get around the problem to make Edge behave just like Chrome.

The problem is Google

Recently, Chris Peterson, the technical program manager at Mozilla (who oversees the Firefox browser), finally gave a detailed analysis and confirmation of what we all have experienced: YouTube is slower on Firefox and Edge.

https://twitter.com/cpeterso/status/1021626510296285185

Google's recent redesign of YouTube, which is named Polymer, uses the "Shadow Document Object Model (DOM)" version-zero API, which is a form of JavaScript. It's that dependency on what is an older version of Shadow DOM that is the issue. Even Polymer 2.x supports Shadow DOM v0 and v1, but YouTube, ironically, has not yet been updated to the newer refreshed Polymer.

Google is using outdated APIs while the rest of the web world has moved on to adopt current standards. Since this is encoded in YouTube's page coding, it causes issues for other browsers that are complying with modern standards.

As to why Google would do this, Peterson wrote, "I assume Google has metrics showing that the Polymer redesign increases Firefox and Edge user engagement more than the slow polyfills hurt it." That is certainly a generous interpretation.

According to Peterson, this decision by Google results in Edge and Firefox being up to five times slower than Chrome – specifically with comments and related material seemingly taking forever to load.

For it's part, Kyle Pflug, who works on Edge for Microsoft says this issue will be sorted in time between the two companies:

See more

To make matters stranger, Google serves up the pre-Polymer YouTube website to Internet Explorer 11 by default. That means Google could do the same for Firefox and Edge, but it chooses not to ...

So users complain that "Edge sucks" even compared to Internet Explorer 11 for YouTube. The problem is at Google's feet, however. Here's how to fix it.

Following the observed behavior that YouTube serves up a pre-Polymer YouTube experience to Internet Explorer 11 but not Edge, we can modify the saved cookie on the computer to spoof YouTube.

This trick was noted by Reddit user hamzah77, and it's very easy to do. Just follow these steps:

  1. In Edge navigate to any video on YouTube (so the player loads).
  2. Open the Edge Developer Tools using the "Ctrl + Shift + I" shortcut.
  3. Navigate to the Debugger.
  4. Double tap Cookies to expand the sub-menu.
  5. Double-click watch.
  6. In the middle area where values are displayed, find PREF.

  1. Under "Value" for "PREF," replace whatever is there with al=en&f5=30030&f6=8.
  2. Close Edge.
  3. Navigate back to YouTube. (Videos should now load instantly.)

The downside with this approach is two-fold:

  • If that cookie is wiped or deleted, you need to re-do the process.
  • This method reverts YouTube to pre-Polymer, so it looks flatter and less modern than the current redesign.

Those downsides are more than acceptable given the resulting performance gain. YouTube is now just as fast as it used to be before Google futzed with things.

Solution No. 2: Tampermonkey script

The alternative to the above is to run Tampermonkey (opens in new tab) in Edge (or Firefox). The extension is a popular userscript manager that lets you auto-run scripts on specific websites.

Twitter user @hypertextc0ffee links to the Pastebin script that you can copy and paste to Tampermonkey. That script then runs anytime you land on YouTube and does the same as the trick above; it reverts to the old version of YouTube.

  1. Download Tampermonkey from Microsoft (opens in new tab)
  2. Go to PasteBin, where you can access the "youtube disable polymer" script.

  1. Copy and paste that script using the "Create new script" function.

The Tampermonkey version has a few advantages over the editing the cookie:

  • It persists even if you wipe your cookies.
  • It's easy to undo or pause by controlling the extension for Edge.

The downside to Tampermonkey is Edge will load YouTube and then reload the page again with the script running. The result is not as fluid and a tad slower than using solution No. 1, but it still delivers the desired result.

Bonus solution: Use MyTube!

Finally, a third unofficial solution to this Edge and YouTube mess is to use something like MyTube! on your PC.

MyTube! has been around for ages and is one of the best YouTube clients available. It includes many advanced features, such as working on Xbox One, support for 4K video, mini-window, and picture-in-picture, and it has a modern, Fluent design.

See at Microsoft (opens in new tab)

Daniel Rubino
Editor-in-chief

Daniel Rubino is the Editor-in-chief of Windows Central, head reviewer, podcast co-host, and analyst. He has been here covering Microsoft since 2007 when this site was called WMExperts (and later Windows Phone Central). His interests include Windows, Microsoft Surface, laptops, next-gen computing, and for some reason, watches. Before all this tech stuff, he worked on a Ph.D. in linguistics and ran the projectors at movie theaters, which has done absolutely nothing for his career.

80 Comments
  • Google is basically Microsoft twenty years ago. Glad MS changed a lot.
  • Google​ is evil
  • Mytube is great! But together with this recommendation you should post instructions to associate YouTube links to open on mytube by default.
  • Alternative solution:
    When you copy a YouTube video link then open MyTube, it'll offer you an option to open the link from clipboard in the app.
  • It does, it's very nice, thanks
  • That's all I use is MyTube the Dev for that App is great he post's messages at the top when he's having an issue to let know what's up. I donate ll the time to him for the good work he does.
  • I did the Tampermonkey thing and it works , it's way faster now .I'll miss the dark theme though :P
  • Same here, more convenient than modifying the cookie and has the added advantage that even if the cookie is removed the script will still work.
  • Nah... Losing the dark theme in YouTube is kind of too much of a deal breaker to me and my delicate eyes to perform such a hack.
    I'm also too lazy to toggle frequently between Edge and an App like MyTube just to have the best of both worlds...
  • Pardon my french, but this sounds assbackwards. Why not use Enhancer for YouTube in Edge (free extension) in addition to the cookie trick? You get Dark Mode/dark themes and you won't get osteoporosis waiting for your video to load.
  • lol you said ass. 😂
  • Thanks for the tip on the enhancer extension Daniel. Works awesome. Now my youtube loads fast and is dark as well!
  • NP, it's a solid extension. Almost too many options, but greatly improves YT.
  • Yes it’s really good. Having a dark theme on YouTube with the “fix” done makes for a much better experience. Thanks again!
  • Osteoporosis xD
  • Awesome. Next --> Facebook!!!!!
    Any solutions for that? Problems loading, scaling, stuff jumping up and down, auto refreshing back to top, etc...
  • That is just facebook and that happens on every browser and every app.
  • I read this yesterday and tried the change. Sure enough the website changed to an older looking style but to me the load performance seemed basically the same. The site was a little slow loading (in different ways) under Edge with both the old and the new styles. So I just left things unchanged. Edge has pretty slow DOM anyway. Great Javascript but slow DOM. Hoping Microsoft continue to optimize things but it's my browser of choice and these days is actually the most solid it's been in, well forever.