CreateMonitor: downloadprogress event
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The downloadprogress
event of the CreateMonitor
interface is fired when progress is made on the AI model download.
Syntax
Use the event name in methods like addEventListener()
, or set an event handler property.
js
addEventListener("downloadprogress", (event) => {});
ondownloadprogress = (event) => {};
Event type
A ProgressEvent
. Inherits from Event
.
Examples
See the main CreateMonitor
page for an example.
Specifications
Specification |
---|
Writing Assistance APIs # dom-createmonitor-ondownloadprogress |
Browser compatibility
See also
- Using the Summarizer API
- Web AI demos on chrome.dev.