| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ja/docs/Web/API/Worklet/addModule | [Back] [Original] |
Get to know MDN better
addModule(moduleURL);
addModule(moduleURL, options);
moduleURLJavaScript URL
options credentials: Cookie HTTP Request.credentials "omit", "same-origin", "include" "same-origin" Request.credentials
URL Promise
addModule()
AbortError DOMExceptionSyntaxError DOMException moduleURL
const audioCtx = new AudioContext();
const audioWorklet = audioCtx.audioWorklet;
audioWorklet.addModule("modules/bypassFilter.js", {
credentials: "omit",
});
CSS.paintWorklet.addModule(
"https://mdn.github.io/houdini-examples/cssPaint/intro/worklets/hilite.js",
);
paintWorklet CSS paint()
@supports (background-image: paint(id)) {
h1 {
background-image: paint(hollowHighlights, filled, 3px);
}
}
| HTML # dom-worklet-addmodule-dev |
| Web Proxy Viewer | New URL | Original Page |