$a.preload

📘 Helps to preload components and icons on the page. This can help to decrease the time for showing on-demand components and icons.

components

components(components: string[])

Preloads components to get rid of delays when a component/overlay is shown for the first time.

Example

this.$a.preload.components(
  ["ion-alert", "ion-modal", "ion-loading", "ion-toast"]
);

icons

icons(icons: string[])

Preloads icons to get rid of delays when icons are shown for the first time.

Example

this.$a.preload.icons(["close-circle", "alert-circle-outline"]);