How to use the @deckdeckgo/slide-utils.lazyLoadContent function in @deckdeckgo/slide-utils

To help you get started, we’ve selected a few @deckdeckgo/slide-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 / slides / youtube / src / components / slide / deckdeckgo-slide-youtube.tsx View on Github external
return new Promise(async (resolve) => {
      await lazyLoadContent(this.el);

      await this.initSize();
      await this.resizeVideoContent();

      resolve();
    });
  }
github deckgo / deckdeckgo / webcomponents / slides / chart / src / components / slide / deckdeckgo-slide-chart.tsx View on Github external
return new Promise(async (resolve) => {
      const promises = [];
      promises.push(lazyLoadContent(this.el));
      promises.push(this.drawChart());

      await Promise.all(promises);

      resolve();
    });
  }
github deckgo / deckdeckgo / webcomponents / slides / video / src / components / slide / deckdeckgo-slide-video.tsx View on Github external
return new Promise(async (resolve) => {
      await lazyLoadContent(this.el);

      await this.initSize();
      await this.resizeVideoContent();

      resolve();
    });
  }
github deckgo / deckdeckgo / webcomponents / slides / poll / src / components / slide / deckdeckgo-slide-poll.tsx View on Github external
return new Promise(async (resolve) => {
      const promises = [];
      promises.push(lazyLoadContent(this.el));
      promises.push(this.initSize());
      promises.push(this.initChartAndPoll());

      await Promise.all(promises);

      resolve();
    });
  }