javascript - Wait for scripts with type="module" to finish before running the next script - Stack Overflow
At the bottom of the body tag inside my html document I have 2 script tags with type="module". Below that I have a script tag with some embedded code that depends on the result of the pre...
javascript - Wait for scripts with type="module" to finish before running the next script - Stack Overflow The 2026 Annual Developer Survey is live— take the Survey today! Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. Learn more about Collectives Stack Internal Knowledge at work Bring the best of human thought and AI automation together at your work. Explore Stack Internal Wait for scripts with type="module" to finish before running the next script Ask Question Asked 3 years, 6 months ago Modified 3 years, 6 months
related reading
- JavaScript Loading Priorities in Chromeaddyosmani.com
- Microtasks and event looptr.javascript.info
- ///_hyperscripthyperscript.org
- Cursor Docs — Agent, Rules, MCP, Skills & CLIdocs.cursor.com
- Modules | webpackwebpack.js.org
- The Event Loop and Callback Hell - Wes Boswesbos.com
- Monolith – CLI tool for saving complete web pages as a single HTML filenews.ycombinator.com
- Log in with Atlassian accountmoneylion.atlassian.net
- TypeScript: Documentation - Modulestypescriptlang.org
- Kickbacks.ai — Earn while you wait.kickbacks.ai
- ES modules: A cartoon deep-dive - Mozilla Hacks - the Web developer bloghacks.mozilla.org
- CommonJS规范 -- JavaScript 标准参考教程(alpha)javascript.ruanyifeng.com