A suspected YouTube interface bug  spikes RAM usage above 7 gigabytes, users report severe lag and frozen tabs — bug might be trapping browsers in an endless layout loop

Youtube error
(Image credit: Getty Images)

Reports of YouTube freezing browsers and consuming enormous amounts of RAM began spreading across Reddit and browser forums late last week, with developers now pointing to a bug in the platform's interface code that may be trapping browsers in an endless layout recalculation loop. What's emerging is that there is a runaway interface bug buried inside the platform's video controls.

Users across multiple browsers, including Firefox, Brave, and Microsoft Edge, have described videos stuttering, tabs becoming unresponsive, and systems slowing to a crawl while watching YouTube. Some users reported the individual YouTube tabs consuming more than 7GB of RAM.

Latest Videos From

Following investigations, reportsMozilla's emerging from Mozilla’s open-source bug-tracking system, Bugzilla, suggest YouTube's frontend interface logic is the main culprit. Developers investigating the issue appear to have narrowed the problem down to the flexible menu container located directly beneath the video player — the section containing controls such as Like, Dislike, Share, and other interaction buttons.

Button peek-a-boo loop

According to comments related to the investigation, the interface repeatedly checks whether all buttons fit within the available horizontal space. If the controls overflow, the system hides one of the buttons to free space. However, hiding the button changes the container's width, immediately creating a new problem.

Once the button disappears, the available width appears enough for the interface to believe there is room again, causing the hidden button to reappear. The buttons then overflow once more, forcing the interface to hide the button again. The cycle repeats continuously at extremely high speeds.

While the visual behavior itself may appear minor, the consequences inside the browser can be far more significant. Modern browsers constantly recalculate page layouts whenever interface elements change size or position. If a webpage repeatedly triggers those recalculations thousands of times per second, the browser can become trapped in what developers often call layout thrashing or a reflow loop.

That forces the browser to continuously recompute layout geometry, redraw interface elements, and update rendering states, rapidly consuming CPU resources and memory. A user shared screenshots on Reddit showing CPU cores pinned near maximum utilization while YouTube tabs became nearly unresponsive. Others reported browser-wide slowdowns severe enough to temporarily freeze entire systems.

Mozilla developers are reportedly still investigating the issue, though no broadly confirmed fix appears to exist yet. The fact that both Firefox-based and Chromium-based browsers appear to experience similar problems further supports the suspicion that the issue may originate primarily with YouTube. For now, the exact root cause remains unofficial; neither Google nor YouTube has publicly confirmed the source of the problem.

Google Preferred Source

Follow Tom's Hardware on Google News, or add us as a preferred source, to get our latest news, analysis, & reviews in your feeds.

Etiido Uko
News Contributor

Etiido Uko is a news contributor for Tom's Hardware covering the latest updates in big tech and the PC industry. He is a mechanical engineer and senior technical writer with over nine years of experience in documentation and reporting. He is deeply passionate about all things engineering and technology, and is an expert in gadgets, manufacturing, robotics, automotive, and aerospace.

  • Notton
    I've noticed youtube interface bugs with watchlater disappearing, but my firefox is only consuming 3.6~3.8GB memory after letting it play for 8hrs consecutively at 1.75x playback speed.

    Though I have noticed videos stuttering when opening Tom's top page and any news article.
    Reply
  • Zaranthos
    The problem just highlights the age old problem of developers either poorly designing or poorly testing software along with the never ending urge to just use more resources because modern hardware has it available. This is wrecking entire Chromebook fleets in places like schools where more inexpensive hardware is the norm and necessary because of budget constraints. It's pretty common for Chromebooks to see their 4GB ram completely consumed by a handful of Chrome tabs and the CPU at 100% because one or more webpages are gobbling up all the resources. The internet demand on browsers is much worse now with browser enabled GPU acceleration and higher and higher resolution ads looping forever in the background. Yeah you can stop some of that but in a diverse network environment disabling something to fix a problem can also mean you just broke something somewhere else a student or staff member may need.

    There are now Chromebooks with years of support ahead of them that are being crippled by bad website design and hardware prices that are endangering tech department budgets. Add to that stupid developer design decisions like Chrome defaulting to enable keeping the browser loaded when closed so your tabs open faster when you launch Chrome so normal people that aren't tech savvy have to restart the device to get Chrome to stop bogging down their system again. Sorry, grandma isn't going to figure out to go to the tray where Microsoft hides icons behind a hidden icons menu to right click and close the offending application.

    Software developers often forget not everyone has the high end hardware they use on a daily basis. Do better. But they're often not the problem either as their corporate bosses ask for the features that are part of the problem.
    Reply
  • usertests
    Chat on YouTube live and previously live streams can be a major user of RAM and cause the tab to crash. Also spikes CPU usage. Not as bad as this bug though.
    Reply
  • chaos215bar2
    Sounds like a browser bug first, and perhaps a YouTube bug second. Why is a single tab allowed to keep consuming memory to the point it freezes entirely?
    Reply
  • hotaru251
    chaos215bar2 said:
    Why is a single tab allowed to keep consuming memory to the point it freezes entirely?
    system does what webpage wants (within reason) and if the webpage is freaking out the system doesnt always know that and will keep giving it what it wants.
    Reply
  • DingusDog
    Probably another instance of trash AI code.
    Reply
  • timsSOFTWARE
    Zaranthos said:
    The problem just highlights the age old problem of developers either poorly designing or poorly testing software along with the never ending urge to just use more resources because modern hardware has it available. This is wrecking entire Chromebook fleets in places like schools where more inexpensive hardware is the norm and necessary because of budget constraints. It's pretty common for Chromebooks to see their 4GB ram completely consumed by a handful of Chrome tabs and the CPU at 100% because one or more webpages are gobbling up all the resources. The internet demand on browsers is much worse now with browser enabled GPU acceleration and higher and higher resolution ads looping forever in the background. Yeah you can stop some of that but in a diverse network environment disabling something to fix a problem can also mean you just broke something somewhere else a student or staff member may need.

    There are now Chromebooks with years of support ahead of them that are being crippled by bad website design and hardware prices that are endangering tech department budgets. Add to that stupid developer design decisions like Chrome defaulting to enable keeping the browser loaded when closed so your tabs open faster when you launch Chrome so normal people that aren't tech savvy have to restart the device to get Chrome to stop bogging down their system again. Sorry, grandma isn't going to figure out to go to the tray where Microsoft hides icons behind a hidden icons menu to right click and close the offending application.

    Software developers often forget not everyone has the high end hardware they use on a daily basis. Do better. But they're often not the problem either as their corporate bosses ask for the features that are part of the problem.
    DingusDog said:
    Probably another instance of trash AI code.
    The problem isn't the AI itself, per-se - it's that thinking problems through doesn't doesn't get much faster with AI, testing and validating code doesn't get much faster, etc. In order to keep up with AI code writing speed, organizations are letting everything else degrade.

    Microsoft seems to be worst offender so far. I stopped using VS2026 for example, because they keep patching it seemingly every week, but instead of the software becoming more stable with each release, it seems to be going in the opposite direction. In the latest version, it won't even exit cleanly on its own - I have to force-terminate it.
    Reply
  • JRStern
    I had some YouTube tab freezes starting several weeks ago, but rare. I've seen CPU go to 50%, I wasn't looking at RAM.
    Reply
  • umeng2002_2
    I've noticed bad UI and video loading performance for a few weeks now. Good to know I'm not the one going crazy.
    Reply
  • Jabberwocky79
    Ohhhhh, so that's what's going on..... Youtube has been performing like dogwater on my machine lately. I'm one of those who thought it was the latest battle in the war on Adblockers.
    Reply