HubSpot CMS for Developers II: Best Practices Certification Answers

Consider the line of code below. If you were to load a script in this way, what would be the result? {{ require_js(get_asset_url(“./path/to/file.js”), { async: true }) }}

Latest Update on 8th July, 2023 by Certification Course Answers

Consider the line of code below. If you were to load a script in this way, what would be the result? {{ require_js(get_asset_url(“./path/to/file.js”), { async: true }) }}

  1. The script would be added to the head of the document with an async attribute.
  2. The script would be added before the closing body tag with a defer attribute.
  3. The script would be added to the head of the document with a defer attribute.
  4. The script would be added before the closing body tag with an async attribute.

Correct Answer :

  • The script would be added before the closing body tag with an async attribute.

Latest Updates

No posts found in this category.