Delayed clipboard rendering
- Category
- Miscellaneous
- Type
- New or changed feature
- Status
- Proposed (Chrome Proposed)
- Intent stage
- Start prototyping
Summary
Delays the generation of the clipboard payload until it is needed by the target applications. Delayed clipboard rendering leverages the existing Async Clipboard API to allow web applications to improve performance when exchanging large data payloads by only producing the clipboard payload once a target application attempt to access it.
Motivation
Source applications typically don’t know where the user intends to paste the content at the time of copy, so web applications may produce several formats when writing to the clipboard to prepare for many possible target applications. The generation of one or more representations may take enough time that it is noticeable to the user, but it is unlikely that the target application will need all produced representations.
Standards & signals
- Specification: https://w3c.github.io/clipboard-apis
- Firefox: Positive — Expressed no concerns, conversation: https://github.com/w3c/editing/issues/417#issuecomment-1452770119 https://github.com/w3c/editing/issues/439#issuecomment-1856570059
- Safari: Positive — Expressed no concerns for supporting built-in formats, conversation: https://github.com/w3c/editing/issues/417#issuecomment-1452770119 Expressed concerns for supporting web custom formats citing privacy risks: https://github.com/w3c/editing/issues/417#issuecomment-1596575822
- Web developers: Strongly positive — Strong positive signals from Adobe: https://github.com/w3c/editing/issues/417#issuecomment-1464355663 Positive signals from Excel Online as well.
- Tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1408850
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=delayed-clipboard-rendering
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Delayed%20clipboard%20rendering
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Delayed%20clipboard%20rendering
- Baseline status: https://webstatus.dev/?q=Delayed%20clipboard%20rendering
Docs: https://docs.google.com/document/d/1OIyzmilYbV7xc6JvNt73ELQX_DyiL-b3tkFZ3OGBrt0/edit?usp=sharing