CreateMonitor: downloadprogress event
Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.
Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.
Thedownloadprogress event of theCreateMonitor interface is fired when progress is made on the AI model download.
In this article
Syntax
Use the event name in methods likeaddEventListener(), or set an event handler property.
js
addEventListener("downloadprogress", (event) => { })ondownloadprogress = (event) => { }Event type
AProgressEvent. Inherits fromEvent.
Examples
See the mainCreateMonitor 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.