← Back to release summary

Passive event listeners

Category
User input
Type
New or changed feature
Status
Enabled by default (Chrome 51)
Intent stage
None

Summary

Expose "passive" boolean in the EventListenerOptions dictionary. Implement the behaviour with respect to dispatching passive EventListeners so that calling preventDefault inside executing the passive registered callback only generates a warning to the console. Can be used to dramatically improve scrolling performance.

Standards & signals

Docs: https://github.com/RByers/EventListenerOptions/blob/gh-pages/explainer.md

Samples: https://rbyers.github.io/scroll-latency.html

View on chromestatus.com