defer script html
snippet in html

defer script html

user7128

<!--
  The defer attribute specifies that the script
  is executed when the page has finished parsing.
  
  Note: This only works for external scripts.
-->
<html>
  <head>
	<script defer type="text/javascript" src="/path/to/script.js"></script>
    ...

script deferred

user4326

<script src="demo_defer.js" defer></script>