JavaScript can block DOM construction unless explicitly declared as async.

JavaScript can block DOM construction unless explicitly declared as async.

True or false: JavaScript can block DOM construction unless explicitly declared as async.

  • False
  • True
JavaScript can block DOM construction unless explicitly declared as async.

JavaScript can block DOM construction unless explicitly declared as async.

Correct answer is:

  • True

Explanation: JavaScript is powerful, it can modify just about every aspect of the page, but it can also block DOM construction and delay page rendering (see also Adding interactivity with JavaScript). To keep JavaScript from delaying page rendering, AMP allows only asynchronous JavaScript.
Read more herehttps://support.google.com/partners/answer/7336293

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.