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.
The correct answer is:
- The script would be added before the closing body tag with an async attribute.
🎓 Get all the latest and 100% correct HubSpot CMS for Developers II Certification Exam Answers