Mastodon Feed: Post

Mastodon Feed

slightlyoff@toot.cafe ("Alex Russell") wrote:

I firmly believe that if your site generates > 500ms main thread tasks for a sizeable fraction of users (say, 10%?), then browsers should put a "slow" icon in the URL bar and send a bloom filter down that opts your site into "single thread mode" for all users.

In this mode the browser would:

  • disable off-thread compile and GC
  • block scrolling on main-thread tasks
  • animate on the main thread
  • block on image decode

That we don't do this today is a failure of imagination.