WICG/EventListenerOptions is an open-source project on GitHub with 1.2k stars, written primarily in JavaScript. An extension to the DOM event pattern to allow authors to disable support for preventDefault
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
This work is now part of the official WHATWG DOM spec. Please file any issues/pull requests there. This repository (and its resources / discussions) are only preserved here as an archive.
An extension to the DOM event pattern to allow listeners to disable support for preventDefault, primarily to enable scroll performance optimizations. See the explainer document for an overview.
Spec changes
See the main commit in the DOM specification or pull request for full details.
The key parts of the spec affected by this are EventTarget, Observing event listeners, and preventDefault
Touch Events has been updated to describe the performance optimization.
Interventions issue 18 tracks the plan to "intervene" and force touch listeners to be passive in scenarios where the compat risk is low but the perf benefit large.
Status of implementations:
See CanIUse entry for passive event listeners
Chromium: shipping in Chrome 51 (launch bug)
Chromium bug tracking the next step of automatically opting some listeners into passive behavior.
WebKit: EventListenerOptions support and performance optimization for touch listeners landed.
Performance optimization of wheel listeners not yet implemented.
Firefox: Landed - planned to ship in Firefox 49
DOM4 Polyfill, or sample polyfill here
Additional background on the problem:
Summary from Google I/O 2016 Mobile Web talk
Ilya Grigorik's talk at Chrome Dev Summit [slides]
Discussion on twitter with demo video
Demo page with latency measurement
Older G+ post by Rick Byers
Additional resources for understaning and using passive listeners
TopGit's last sync did not record any GitHub topics for WICG/EventListenerOptions. GitHub topics appear in the right sidebar of a repository page; that's the authoritative place to check.
How active is development on WICG/EventListenerOptions?
The most recent commit recorded on WICG/EventListenerOptions was 8.7 years ago, based on the GitHub push timestamp. The repository has 138 forks — one of the better signals of community interest.
How many stars does WICG/EventListenerOptions have?
WICG/EventListenerOptions has 1.2k GitHub stars — refresh the page for the live number, or check github.com/WICG/EventListenerOptions. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
What language is WICG/EventListenerOptions written in?
WICG/EventListenerOptions is written primarily in JavaScript. GitHub's language field is based on the largest share of bytes in the default branch.
Where do I read more about WICG/EventListenerOptions?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/WICG/EventListenerOptions is the definitive source.
Read full README in the tab above.
Want a second opinion on EventListenerOptions?
Ask an AI that can read this page — one click and you get its take on EventListenerOptions.