CreateMonitor: downloadprogress event
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("Summarizer API")}}{{SeeCompatTable}}{{securecontext_header}}
The **downloadprogress** event of the {{domxref("CreateMonitor")}} interface is fired when progress is made on the AI model download.
Syntax
Use the event name in {{domxref("EventTarget/addEventListener", "addEventListener()")}}:
js-nolint
addEventListener("downloadprogress", (event) => { })Alternatively, assign to the event handler property of the interface:
js-nolint
ondownloadprogress = (event) => { }Event type
A {{domxref("ProgressEvent")}}. Inherits from {{domxref("Event")}}.
{{InheritanceDiagram("ProgressEvent")}}
Examples
See the main {{domxref("CreateMonitor")}} page for an example.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
- Using the Summarizer API
- Web AI demos on chrome.dev.