Tagged articles
dynamic import
18 articles · Page 1 of 1
ArkTS introduces the `import lazy` syntax to defer module execution until first use, reducing cold-start latency by ~15% through compiler-runtime collaboration and integrated profiling tools that detect, mark, verify, and quantify redundant loads without rewriting call sites.
ArkTSDevEco ProfilerHSP
0 likes · 10 min read


UbuntuJul 26, 2026 · Artificial Intelligence
Despite Python’s dominance in AI, the top AI coding agents converge on TypeScript + Node.js because five concrete engineering trade‑offs—event‑loop alignment with ReAct, native streaming support, a rich npm ecosystem, TypeScript being the LLM’s “native language”, and hot‑pluggable dynamic imports—make JavaScript the optimal stack, with clear exceptions for certain workloads.
AI agentsJavaScriptLLM
0 likes · 12 min read

This tutorial explains how to integrate a pre‑built Vue 2 component library into a Vue 3 application by dynamically loading the Vue 2 runtime, creating an isolated Vue 2 instance, mounting the component to a dedicated DOM node, and leveraging props for data exchange, while keeping bundle size small.
VueVue2Vue3
0 likes · 6 min read

This article explains the concept of code splitting in Next.js, describes how automatic page-level splitting and dynamic imports reduce initial bundle size, and provides practical code examples that demonstrate improved load times and better user experience for modern web applications.
Code SplittingNext.jsdynamic import
0 likes · 8 min read

This guide explains the differences between Python's import statements—including "import X", "from X import Y", and "from X import *"—covers dynamic imports with __import__, sys.path handling, PYTHONPATH, PEP8 import ordering, __all__ usage, and the role of __name__ in module execution, helping you write cleaner, conflict‑free code.
Modulesdynamic importimports
0 likes · 10 min read

This article explains how to organize, import, dynamically load, batch import, and lazily load images in Vue 3 + Vite applications, covering static assets, CSS references, template usage, URL handling, import.meta.glob, and common pitfalls with path aliases.
Vuedynamic importimage-management
0 likes · 12 min read

By using code splitting and dynamic imports, React developers can break large bundles into on‑demand chunks—loading only needed libraries, components, or routes after user actions—thereby shrinking initial download size, speeding up first render, and delivering a more responsive, scalable application.
Code SplittingReactdynamic import
0 likes · 9 min read

This article presents advanced Next.js techniques—including dynamic imports, CDN asset publishing, server‑side caching, Incremental Static Regeneration, and custom server integration for WebSockets—to help developers build faster, more scalable, and performance‑optimized web applications.
CDNISRNext.js
0 likes · 8 min read

This article explains how to customize Metro bundler to support dynamic imports in React Native, detailing a split‑and‑combine build process that isolates async modules, deduplicates code, and loads bundles on demand, thereby shrinking app size and avoiding the drawbacks of multi‑business package architectures.
Bundle OptimizationCode SplittingJavaScript
0 likes · 14 min read

This article explains the ES2020 optional chaining (?.) and dynamic import() features, showing their syntax, practical code examples, compatibility notes, and how they simplify JavaScript code while improving web application performance.
ES2020JavaScriptOptional Chaining
0 likes · 11 min read

This article explains various on-demand import techniques for modern JavaScript projects, covering the native async import() syntax, the Babel plugin-import for selective library loading, Tree Shaking to eliminate dead code, and conditional compilation using tools like uglify-js-plugin and js-conditional-compile-loader.
Conditional Compilationdynamic importfrontend
0 likes · 11 min read

This article explains how Vite‑built micro‑frontends can be loaded as native ES modules in icestark, covering the advantages of ES‑module tooling, dynamic import techniques, necessary Vite configuration changes, and the resulting fast cold‑start and second‑load performance for progressive upgrades.
ES ModulesFrontend DevelopmentMicro Frontends
0 likes · 13 min read

This article explains how native ES modules, supported by modern browsers since 2018, enable no‑build development with tools like Vite and Snowpack, and describes practical techniques for loading Vite‑based micro‑frontends in icestark using dynamic import, lib mode, and plugins.
ES Modulesdynamic importicestark
0 likes · 10 min read

This guide explains the roles of import and export in ES modules, demonstrates static and dynamic import syntax with code examples, and advises when to use dynamic imports for large modules in modern browsers and Node.js.
Import ExportJavaScriptdynamic import
0 likes · 6 min read


58 TechJul 12, 2021 · Mobile Development
The article presents Jiang Hongwei’s GMTC talk on 58RN’s instant‑open strategy, detailing performance metrics, LCP‑based first‑screen measurement, identified bottlenecks, and a series of optimizations—including resource pre‑loading, bundle splitting, native parallel fetching, and dynamic import—that collectively reduce page load time and improve business conversion rates.
Instant LoadLCPReact Native
0 likes · 17 min read

This article explains how to dynamically load and execute a CommonJS‑style JavaScript module in a browser by reproducing Node's internal Module._compile workflow, creating a sandbox with with, Proxy, and Symbol.unscopables, and providing a complete ES6 class implementation with examples.
Node.jsdynamic importmodule loading
0 likes · 11 min read

Explore eight distinct methods for importing Python modules—from the simple 'import' statement to advanced techniques like __import__, importlib, imp, execfile, exec, the import_from_github_com package, and custom remote importers—providing practical code examples and guidance for both everyday developers and framework creators.
Pythondynamic importimport
0 likes · 10 min read


政采云技术May 24, 2020 · Frontend Development
This article explains how React.lazy and Suspense enable on‑demand component loading, describes the underlying webpack dynamic import mechanism, shows how to configure fallback UI and error boundaries, and provides practical code examples for modern frontend performance optimization.
@LazyError BoundaryReact
0 likes · 13 min read
