Interface IOnPageLoad

Hierarchy

  • IOnPageLoad

Properties

Properties

getIsLoaded: (() => boolean)

Type declaration

    • (): boolean
    • Get if the page is loaded

      Returns boolean

onLoad: ((callback) => undefined | IAddedCallback)

Type declaration

    • (callback): undefined | IAddedCallback
    • Add a callback on page load If the page is already loaded, the callback will be called immediately and return undefined. Otherwise, a descructable callback will be returned that can be used to remove the callback.

      Parameters

      • callback: (() => void)
          • (): void
          • Returns void

      Returns undefined | IAddedCallback

      Example

      const callback = vevet.pageLoad.onLoad(() => console.log('Page loaded'));

      callback?.remove()