https://github.com/benjamingr/script-order-load-demo
https://github.com/benjamingr/script-order-load-demo
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/benjamingr/script-order-load-demo
- Owner: benjamingr
- License: apache-2.0
- Created: 2022-07-27T11:04:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-27T11:05:51.000Z (almost 3 years ago)
- Last Synced: 2025-02-13T16:47:40.904Z (5 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This demonstrates that in Chrome dynamic script order
is not guaranteed.To use:
run `npm install` then `node index.mjs`.
Go to `http://localhost:3000` and open your console.
You will see the code from 2.js loads before the code from 1.js even though it's added as a script tag later.
You can also observe this is different in firefox.