Skip to content
masterclass Buddy

Vue.js · Function

defineAsyncComponent

defineAsyncComponent lets Vue load a component only when it is rendered. It accepts a Promise-returning loader and can show loading or error components while loading.

Last updated

Syntax

function defineAsyncComponent(source: AsyncComponentLoader | AsyncComponentOptions): Component

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Component
  • AsyncComponentLoader
  • AsyncComponentOptions
  • loadingComponent
  • errorComponent
  • Suspense
  • nextTick()

Source: Async Components | Vue.js. Checked 2026-11-03.