Read high performance JavaScript programming English chapter I third page second paragraph

Source: Internet
Author: User
Tags script tag

Script Positioning Scripting Location
The HTML 4 specification indicates, a <script> tag may placed inside of a HTML document and may appear any number of times within each. Traditionally, script> tags that is used to
Load external JavaScript files has appeared in the Other metainformation about the page. The theory is that it's best to keep as many style and behavior
dependencies together, loading them first so, the page would come in looking and behaving correctly. For
Example
The HTML 4 document states that a <script> tag can be placed in the Appear. Traditionally,,<script> tags are used to load external JavaScript files. Used to load external CSS files and other page middleware. In other words, it is best to put together the parts that are dependent on the style and behavior, first add
Load them so that the page can get the right look and behavior. For example:

The HTML4 document clearly states that a script tag can be placed in any number of head tags, body tags, or any of the HTML documents.

Traditional recommendation: 1, if the script tag is used to refer to external files in the head tag best, it is not lonely, some meta-information about the page and the link tag for loading external CSS code will stay with it.

2, it is best to follow the dependencies in order to refer to JS and CSS to ensure that the page appearance and behavior is right.

Along with the page would come in looking and behaving correctly page will be correct in style and behavior.

The sentence is not difficult to understand is a lot of new words ...

Read high performance JavaScript programming English chapter I third page second paragraph

Related Article

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.