|
When reveal.js is booted up via `Reveal.initialize()`, it will go through all registered plugins and invoke their "init" methods. If the "init" method returns a Promise, reveal.js will wait for that promise to be fullfilled before finshing the startup sequence and firing the [ready](#ready-event) event. Here's an example of a plugin that returns a promise:
|
|
When reveal.js is booted up via `Reveal.initialize()`, it will go through all registered plugins and invoke their "init" methods. If the "init" method returns a Promise, reveal.js will wait for that promise to be fullfilled before finshing the startup sequence and firing the [ready](#ready-event) event. Here's an example of a plugin that returns a promise:
|
|
Reveal.registerPlugin( 'myPlugin', {
|
|
Reveal.registerPlugin( 'myPlugin', {
|
|
Reveal.addEventListener( 'ready', () => console.log( 'Three seconds later...' ) );
|
|
Reveal.addEventListener( 'ready', () => console.log( 'Three seconds later...' ) );
|