David Hall's picture
Multiple choice question

Why should Javascript always be loaded as an external file, rather than presented in-line within the source code of a webpage?

a. Because browsers will load all HTML before loading external files and therefore the page will load faster.

b. Because Javascript takes longer to load than HTML and browsers are capable of loading multiple elements on the page simultaneously.

c. Javascript should only be externalized if using a CDN.

d. Javascript should not be externalized because in-line Javascript is loaded faster than externalized Javascript.

Leave a comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.