MCPcopy Create free account
hub / github.com/codrops/3DGridContentPreview / preloadImages

Function preloadImages

src/js/utils.js:24–28  ·  view source on GitHub ↗
(selector)

Source from the content-addressed store, hash-verified

22
23// Preload images
24const preloadImages = (selector) => {
25 return new Promise((resolve, reject) => {
26 imagesLoaded(document.querySelectorAll(selector), {background: true}, resolve);
27 });
28};
29
30/**
31 * Gets computed translate values

Callers 1

index.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected