Apparently, <script>
tags are not loaded in a
deterministic order on IE and Webkit-based browsers.
This page tests this by adding 100 <script>
tags
to a DocumentFragment and then appending that DocumentFragment to
document.documentElement
.
Each <script>
tag points to
to scriptdeterminism.php?num=NNN
, where each value of
NNN
is a number from 1 to 100.
Each request should load a small amount of JavaScript that pushes
its NNN
value onto a global RESULTS
array.
A timeout is scheduled 10 seconds in the future to assert whether
all 100 values have been loaded, in order.