How to use the @deckdeckgo/utils.lazyLoadSelectedLazyImagesComponent function in @deckdeckgo/utils

To help you get started, we’ve selected a few @deckdeckgo/utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github deckgo / deckdeckgo / webcomponents / core / src / components / utils / deckdeckgo-deck-background-utils.tsx View on Github external
return new Promise(async (resolve) => {
      const allShadowImagesComponents: NodeListOf = el.querySelectorAll(':scope > [slot=\'background\'] deckgo-lazy-img');

      const images: HTMLElement[] = Array.from(allShadowImagesComponents);

      await lazyLoadSelectedLazyImagesComponent(images);

      resolve();
    });
  }
github deckgo / deckdeckgo / webcomponents / slides / utils / src / utils / deckdeckgo-deck-utils.ts View on Github external
return new Promise(async (resolve) => {
        const images: HTMLElement[] = getAllImages(el, 'deckgo-lazy-img');

        await lazyLoadSelectedLazyImagesComponent(images);

        resolve();
    });
}