image
Akan.js
English
DocsConventionsReferencesCheatsheet
image
Akan.js
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
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
Previous
Logging
Next
Error Handling

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