Sep 13, 2018

Advantages of External JavaScript

Placing JavaScripts in external files has some advantages:

  1. It separates HTML and code
  2. It makes HTML and JavaScript easier to read and maintain
  3. Cached JavaScript files can speed up page loads