image
Akan.js
Docs
DocsConventionsReferencesCheatsheet
English
image
Akan.js
Akan.js v2 docs are now available.View the v1 docs
DocsConventionsReferencesCheatsheet
Released under the MIT License
Official Akan.js Consulting onAkansoft
Copyright © 2026 Akan.js All rights reserved.
System managed bybassman
General
• Authorization
• Schema Design
• Edge Computing
• File Management
• Single Sign-On
• DataList & Enum
Interface
• CRUD
• Endpoint
• Form
Observability
• Logging
• Dependency Injection
• Error Handling
• Metrics
Performance
• Caching
• Image Optimization
• Lazy Loading
• Querying
• Queueing
• Realtime
Development
• Documentation
• Script
• Docker
• Kubernetes
• PWA
General
• Authorization
• Schema Design
• Edge Computing
• File Management
• Single Sign-On
• DataList & Enum
Interface
• CRUD
• Endpoint
• Form
Observability
• Logging
• Dependency Injection
• Error Handling
• Metrics
Performance
• Caching
• Image Optimization
• Lazy Loading
• Querying
• Queueing
• Realtime
Development
• Documentation
• Script
• Docker
• Kubernetes
• PWA
Next
Authorization

Lazy Loading

Lazy loading means the first page does not download every heavy component right away. Load expensive UI only when the user reaches it.
  • Good for maps, charts, editors, 3D viewers, and wallet widgets.
  • Good for large admin panels that are not always opened.
  • Not useful for tiny buttons or above-the-fold content.

External Libraries

Some libraries are large or depend on browser-only APIs such as `window`. Wrap them with `lazy` and disable SSR when needed.
Map widget

Large Components

You can also split your own components. This is useful when a page has a heavy editor or dashboard that opens only after a click.
Lazy editor

SSR Or Client Only

  • Use default lazy when the component can render on the server.
  • Use `{ ssr: false }` when the library needs `window`, `document`, canvas, WebGL, or browser storage.
  • Always give a loading fallback when the blank space would be confusing.

Tips

  • Split by user intent: editor, map, chart, modal, viewer.
  • Do not lazy-load the first thing users need to see.
  • If many pages use the same component immediately, lazy may only add delay.
Lazy Loading
External Libraries
Large Components
SSR Or Client Only
Tips