Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Our homepage writes 11,400 inline styles a minute while nobody touches it, and scrolling past the animations does not stop them

notifio.app shows the app working instead of a screenshot. Four animated mockups run down the homepage: a browser with a listing appearing in it, a notification sliding in, a reply being typed. I wrote about the 997 lines behind them a while ago, and one line in that post has been bothering me since: "timers that run whether you scrolled there or not". That was an observation from reading the…

The homepage of Notifio.app runs 11,400 inline styles every minute, even when no one interacts with it. Despite four animated elements scrolling down the page, the animations continue without interruption. The homepage's performance metrics show that the app's work consumes 1.35 seconds of main thread time per minute, which is about 12 percent of one core.

This idle work is consistent across five measurements, remaining the same even when the machine is not being used. The homepage's animations are driven by a spring animation with no fixed duration, causing thousands of layout recalculations and mutations per minute. These animations are contained within a single section of the page, accounting for 91 percent of all mutations.

Despite scroll position having no impact on the page's performance, the animations continue to run, consuming significant resources.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Nobody should have to learn blockchain to use your product

I'm Pratyush Shivam, CTO of Konfidio in Berlin. One sentence shapes how I design every screen on top of a ledger: a dispatcher should see "approved", never a wallet or a hash.

  • Present approval status as "approved" instead of technical details.
  • Developers assume users want to engage with blockchain technology.
  • Focus on core functionality, keep technical details hidden.

More from Sunday 22 November →