MCPcopy
hub / github.com/arfct/itty-bitty / loadSyle

Function loadSyle

docs/render.js:67–72  ·  view source on GitHub ↗
(href, callback)

Source from the content-addressed store, hash-verified

65}
66
67function loadSyle(href, callback) {
68 let promise = new Promise((resolve, reject) => {
69 document.head.appendChild(el("link", { type: "text/css", rel: "stylesheet", href, onload:resolve}));
70 })
71 return callback ? promise.then(callback) : promise;
72}
73
74
75function renderScriptContent(data, origin) {

Callers 6

canvas.jsFile · 0.85
download.jsFile · 0.85
color.jsFile · 0.85
bookmarklet.jsFile · 0.85
ipfs.jsFile · 0.85
axiom.jsFile · 0.85

Calls 1

elFunction · 0.70

Tested by

no test coverage detected