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
Explore this link on the map →related reading
- Microtasks and event looptr.javascript.info
- ///_hyperscripthyperscript.org
- A tidy Repository of jQuery Plugins & JavaScriptsunheap.com
- Cursor Docs — Agent, Rules, MCP, Skills & CLIdocs.cursor.com
- Town | The AI Assistant That Does the Worktown.com
- File-system conventions: loading.js | Next.jsnextjs.org
- The Event Loop and Callback Hell - Wes Boswesbos.com
- Log in with Atlassian accountmoneylion.atlassian.net
- TypeScript: Documentation - Modulestypescriptlang.org
- ES modules: A cartoon deep-dive - Mozilla Hacks - the Web developer bloghacks.mozilla.org
- CommonJS规范 -- JavaScript 标准参考教程(alpha)javascript.ruanyifeng.com
- Demystifying Code Bundling with JavaScript Modules - Simple Threadsimplethread.com