Advantages for external js file
It separates HTML and code
It makes HTML and JavaScript easier to read and maintain
Cached JavaScript files can speed up page loads
More Related Contents:
- Html tag for uploading swf format video [closed]
- What are the steps to make a HTML design responsive? [closed]
- Why doesn’t nth-of-type/nth-child work on nested elements?
- vs
- List of HTML5 elements that can be nested inside P element?
- What’s the difference between disabled=”disabled” and readonly=”readonly” for HTML form input fields?
- How can I style even and odd elements?
- How can I vertically center a div element for all browsers using CSS?
- How to apply CSS to iframe?
- Nesting optgroups in a dropdownlist/select
- Why top margin of html element is ignored after floated element?
- How to stretch a fixed number of horizontal navigation items evenly and fully across a specified container
- Force “Internet Explorer 8” browser mode in intranet
- document.body.scrollTop is always 0 in IE even when scrolling
- Spring Boot with AngularJS html5Mode
- Does the tag in HTML have an ending tag?
- How to pass a parameter to html?
- Base64 encoded image is not showing in gmail
- 5 items per row, auto-resize items in flexbox
- HTML Auto Embedding Recent Uploaded videos from a youtube channel
- Can div with contenteditable=true be passed through form?
- What is x-tmpl?
- Frozen table header inside scrollable div
- Force decimal point instead of comma in HTML5 number input (client-side)
- How to add a background image on top of a previous background image?
- How to make HTML open a hyperlink in another window or tab?
- How can I prefix ordered list item numbers with a static string using CSS?
- What is the difference between phrasing content and flow content?
- Rendering a hierarchy of “OPTION”s in a “SELECT” tag
- Dashed border not showing in firefox [duplicate]