TopGit theo dõi WICG/EventListenerOptions trên GitHub, đã đạt 1.2k sao. An extension to the DOM event pattern to allow authors to disable support for preventDefault
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
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
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/WICG/EventListenerOptions là nguồn chính thức.
WICG/EventListenerOptions có bao nhiêu sao?
WICG/EventListenerOptions có 1.2k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/WICG/EventListenerOptions. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
WICG/EventListenerOptions có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho WICG/EventListenerOptions. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
WICG/EventListenerOptions còn đang phát triển không?
Commit gần nhất trên WICG/EventListenerOptions là 8.7 năm trước (theo timestamp GitHub). Repo có 138 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
WICG/EventListenerOptions viết bằng ngôn ngữ gì?
WICG/EventListenerOptions chủ yếu viết bằng JavaScript. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc EventListenerOptions có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về EventListenerOptions.