Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pythongosssss/ComfyUI-Custom-Scripts
/ loadImage
Function
loadImage
web/js/common/utils.js:23–30 ·
view source on GitHub ↗
(url)
Source
from the content-addressed store, hash-verified
21
}
22
23
export
async
function
loadImage(url) {
24
return
new
Promise((res, rej) => {
25
const
img =
new
Image();
26
img.onload = res;
27
img.onerror = rej;
28
img.src = url;
29
});
30
}
Callers
1
update
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected