Re: [w3c/selection-api] Skip posting a task for `selectionchange` event in some cases (Issue #170)

On web user side, it has no observable behavior difference because currently we haven't registered any listeners(in the listed script).

Skip enqueueing and dispatching this event without listeners might have some benefits on performance, since the browser doesn't need to dispatch events and excute related task and save some CPU cycles.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/selection-api/issues/170#issuecomment-1956068554
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/selection-api/issues/170/1956068554@github.com>

Received on Wednesday, 21 February 2024 07:50:15 UTC