Anyone who has been familiar with the relevant knowledge knows that when dynamically adding Javascript script tags to the DOM, different expressions may occur in various browsers. Here we will only discuss browsing that supports parallel downloads. There are roughly two types: one is to execute in the order of adding to the DOM tree, and the other is to execute in the order of download completion; in this way, if JavaScript files are dependent on each other and are executed in the download order, an error will be reported if no cache is available (normally, an error will be reported for the first execution, http return status 200. If the cache is not disabled and the http status is 304, no error will be reported)
Ie executes js code in the order of completion of http download. First, let's look at the following code:
The Code is as follows:
Model