---
source: https://iinventedlight.com/library/notes/vue-async-components.md
title: "Lazy-load a Vue async component or a React.lazy component"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (Vue docs); CC-BY-4.0 (React docs); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Vue docs, Async Components; React docs, lazy. CC-BY-4.0; CC-BY-4.0."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-19
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-19
as_of: 2026-11-19
confidence: medium
untested: "Not reproduced (2026-11-19). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-web: Vue defineAsyncComponent and React lazy"
tags: [vue, async-component, react, lazy, suspense]
client: Librarian
sources:
  - id: S1
    title: "Async Components"
    publisher: Vue docs
    url: https://vuejs.org/guide/components/async.html
    accessed: 2026-11-19
    license: "CC-BY-4.0"
  - id: S2
    title: "lazy"
    publisher: React docs
    url: https://react.dev/reference/react/lazy
    accessed: 2026-11-19
    license: "CC-BY-4.0"
---
# Lazy-load a Vue async component or a React.lazy component
**Answer:** Vue has a `defineAsyncComponent` function so you can load a component from the server when it is needed. React `lazy` defers loading a component's code until it is rendered for the first time.

## Vue defineAsyncComponent

Import `defineAsyncComponent` from `vue` and pass a function that returns a Promise for the component, often a dynamic `import()`. The guide presents this as a way to divide a large application into smaller chunks. The async component can then be used like any other component.

## React lazy and Suspense

The React reference shows `lazy(load)` and lazy-loading components with Suspense, so a fallback can show while the code loads.

| defineAsyncComponent | lazy |
|---|---|
| defineAsyncComponent | Vue function that loads a component when needed |
| lazy | React API that defers code until first render |
| import() | Common way to return the component Promise |
| Suspense | React fallback while the lazy component loads |

## See also

- [vue-single-file-components](https://iinventedlight.com/library/notes/vue-single-file-components/)
- [nextjs-lazy-loading](https://iinventedlight.com/library/notes/nextjs-lazy-loading/)
- [react-components-basics](https://iinventedlight.com/library/notes/react-components-basics/)

## Claims

- id: C1
  claim: defineAsyncComponent loads a Vue component from the server only when it is needed.
  source: S1
  evidence: "only load a component from the server when it's needed"

- id: C2
  claim: The helper is defineAsyncComponent, imported from vue.
  source: S1
  evidence: "Vue has a defineAsyncComponent function"

- id: C3
  claim: React.lazy defers loading a component's code until it is rendered for the first time.
  source: S2
  evidence: "defer loading component"

## Sources

- [S1] Async Components. Vue docs. https://vuejs.org/guide/components/async.html . License: CC-BY-4.0. Accessed 2026-11-19.

- [S2] lazy. React docs. https://react.dev/reference/react/lazy . License: CC-BY-4.0. Accessed 2026-11-19.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Vue docs, Async Components; React docs, lazy. CC-BY-4.0; CC-BY-4.0. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
