What technique allows you to prefetch a module with dynamic import without executing it immediately?
To prefetch a module without executing it immediately, you can start the import but not await or use the result: 1) Calling import() starts the loading process immediately, 2) By not awaiting the Promise or attaching .then(), the module loads but its execution doesn't block, 3) Storing the Promise allows later access when the module is needed, 4) This technique is commonly used for routes or features likely to be needed soon, 5) It improves perceived performance by starting the load earlier, 6) The browser can optimize the loading, caching, and parsing processes, 7) This approach balances immediate responsiveness with preparation for future needs, 8) It's a practical way to implement speculative loading patterns.