Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 553 Bytes

17-multiple-interactions.md

File metadata and controls

13 lines (8 loc) · 553 Bytes

Multiple interactions (and rage clicks)

Moving long blocking work around can help—but it still blocks the page—affecting future interactions as well as many other page updates, such as (certain) animations.

Ideally, we want to remove Long Tasks completely!

Strategies:

  • Remove unnecessary code altogether (especially scripts)
  • Optimize code to not be needlessly long-running
  • Abort stale work when a new interactions arrive.

Next: Strategy 1: debounce