I have a .html containing 3 instances of the same .aspx script, all with unique parameters, like this:
script src="MyScript.aspx?param=1"
script src="MyScript.aspx?param=2"
script src="MyScript.aspx?param=3"
The unique content returned by each instance of the script is inserted into the DOM on window.load. This usually works fine but sometimes one of the scripts is not loaded (the script name shows up in the list of Sources when the page is inspected but the content/code is empty).
Key Points
The page usually works and only occasionally fails.
The failures occur in incognito/private, mode, too.
How can I force all scripts to load or check whether whether the were loaded via Javascript?