Posted on

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 }) }}

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