Skip to content

VabletLibraryLoaded

Description

This event is triggered when the library is ready to use. Generally used when you intend to invoke a vablet method on page load after the vablet interface is ready.

You can use this in place of DOMContentLoaded as an entry point for your application.

Example

Example of the VabletLibraryLoaded event

document.addEventListener(
  'VabletLibraryLoaded',
  ()={
    // The vablet library is ready, all vablet functions are now available.
  }
);