Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon

Chromium developers to introduce a “Never-Slow Mode”, which sets limits on resource usage

Save for later
  • 2 min read
  • 06 Feb 2019

article-image

Today, Alex Russell, a Google software engineer, submitted a patch called ‘Never-Slow Mode’ for Chromium. With this patch, various limits will be enforced for per-interaction and resources to keep the main thread clean.

Russell’s patch is very similar to a bug Craig Hockenberry, a Partner at The Iconfactory, reported for WebKit, last week. He suggested adding limits on how much JavaScript code a website can load to avoid resource abuse of user computers.

Here are some of the changes that will be done under this patch:

  • Large scripts will be blocked.
  • document.write() will be turned off
  • Client-Hints will be enabled pervasively
  • Resources will be buffered without ‘Content-Lenght’ set
  • Budgets will be re-set on the interaction
  • Unlock access to the largest independent learning library in Tech for FREE!
    Get unlimited access to 7500+ expert-authored eBooks and video courses covering every tech area you can think of.
    Renews at €18.99/month. Cancel anytime
  • Long script tasks, which take more than 200ms, will pause all page execution until the next interaction.
  • Budgets will be set for certain resource types such as script, font, CSS, and images.


These are the limits that have been suggested under this patch (all the sizes are in wired size):

chromium-developers-to-introduce-a-never-slow-mode-which-sets-limits-on-resource-usage-img-0

Source: Chromium


Similar to Hockenberry’s suggestion, this patch did get both negative and positive feedback from developers. Some Hacker News users believe that this will prevent web bloat. A user commented, “It's probably in Google's interest to limit web bloat that degrades UX”. Another user said, “I imagine they’re trying to encourage code splitting.”

According to another Hacker News user putting hard coded limits will probably not work, “Hardcoded limits are the first tool most people reach for, but they fall apart completely when you have multiple teams working on a product, and when real-world deadlines kick in. It's like the corporate IT approach to solving problems — people can't break things if you lock everything down. But you will make them miserable and stop them doing their job”.

You can check out the patch submitted by Russell at Chromium Gerrit.

Chromium developers propose an alternative to webRequest API that could result in existing ad blockers’ end

Chromium blacklists nouveau graphics device driver for Linux and Ubuntu users

Chromium-based Brave browser shows 22% faster page load time than its Muon-based counterpart