Skip to main content


Tag &lt;script&gt;

Adds custom javascript code to the project.

Contains the following attributes:

  • content โ€” javascript code
  • async โ€” asynchronous script loading
  • defer โ€” delay script execution until the entire page has been fully loaded
  • src โ€” address of the file with javascript code that will be imported into the project
  • type โ€” defines the content type of the script tag
  • crossorigin โ€” specifies whether CORS should be used when a file is received or not
  • integrity โ€” contains embedded metadata necessary to verify that the file was delivered without unexpected actions
  • nomodule โ€” used to serve backup scripts in older browsers that don't support modular JavaScript code
  • referrerpolicy โ€” specifies the referent to be sent when the script is received