How to dynamically add js files in ie _ javascript tips-js tutorial

Source: Internet
Author: User
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





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.