Skip to content

Commit

Permalink
Bug 1859350 - Load moz-toggle.mjs asynchronously to avoid blocking DO…
Browse files Browse the repository at this point in the history
…MContentLoaded. r=thecount

Differential Revision: https://phabricator.services.mozilla.com/D193587
  • Loading branch information
mikeconley committed Nov 15, 2023
1 parent e1c9b7a commit 1dd1842
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ function templateHTML(options) {
options.noscripts ? "" : scriptRender
}
<script
async
type="module"
src="chrome://global/content/elements/moz-toggle.mjs"
></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
</div>
<div id="footer-asrouter-container" role="presentation"></div>
<script src="about:home?jscache"></script>
<script type="module" src="chrome://global/content/elements/moz-toggle.mjs"></script>
<script async type="module" src="chrome://global/content/elements/moz-toggle.mjs"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
<script src="resource://activity-stream/data/content/activity-stream.bundle.js"></script>
<script src="resource://activity-stream/data/content/newtab-render.js"></script>
<script
async
type="module"
src="chrome://global/content/elements/moz-toggle.mjs"
></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<div id="root"></div>
<div id="footer-asrouter-container" role="presentation"></div>
<script
async
type="module"
src="chrome://global/content/elements/moz-toggle.mjs"
></script>
Expand Down
1 change: 1 addition & 0 deletions browser/components/newtab/prerendered/activity-stream.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
<script src="resource://activity-stream/data/content/activity-stream.bundle.js"></script>
<script src="resource://activity-stream/data/content/newtab-render.js"></script>
<script
async
type="module"
src="chrome://global/content/elements/moz-toggle.mjs"
></script>
Expand Down

0 comments on commit 1dd1842

Please sign in to comment.