Skip to content

Commit

Permalink
Add defer attribute to nomodule script example
Browse files Browse the repository at this point in the history
This makes it behave more similar to its module counterpart.
  • Loading branch information
andydavies authored and domenic committed May 20, 2019
1 parent aff33ae commit a40f5b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source
Original file line number Diff line number Diff line change
Expand Up @@ -58315,7 +58315,7 @@ o............A....e
agents, and a <span>classic script</span> for older user agents:</p>

<pre><code class="html" data-x="">&lt;script type="module" src="app.mjs">&lt;/script>
&lt;script nomodule src="classic-app-bundle.js">&lt;/script></code></pre>
&lt;script nomodule defer src="classic-app-bundle.js">&lt;/script></code></pre>

<p>In modern user agents that support <span data-x="JavaScript module script">JavaScript module
scripts</span>, the <code>script</code> element with the <code
Expand Down Expand Up @@ -123410,6 +123410,7 @@ INSERT INTERFACES HERE
Andrew W. Hagen,
Andrey V. Lukyanov,
Andry Rendy,
Andy Davies,
Andy Earnshaw,
Andy Heydon,
Andy Paicu,
Expand Down

0 comments on commit a40f5b6

Please sign in to comment.