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
- Demystifying Code Bundling with JavaScript Modules - Simple Threadsimplethread.com
- The Event Loop and Callback Hell - Wes Boswesbos.com
- Microtasks and event looptr.javascript.info
- What the heck is the event loop anyway? | Philip Roberts | JSConf EUyoutube.com
- JavaScript Articles - 30 seconds of code30secondsofcode.org
- javascript - How to download manually the HTML of a dynamic page - Stack Overflowstackoverflow.com
- JavaScript Articles - 30 seconds of code30secondsofcode.org
- Run scripts on every page | Get started | Chrome for Developersdeveloper.chrome.com
- How to fix 'Unchecked runtime.lastError: The message port closed before a response was received' chrome issue? on console - Stack Overflowstackoverflow.com
- Your options for preloading images with JavaScript | Alex MacArthurmacarthur.me
- javascript - Difference between microtask and macrotask within an event loop context - Stack Overflowstackoverflow.com