Skip to content

Commit

Permalink
perf: load chromereload as async as it doesn't matter when it's exe…
Browse files Browse the repository at this point in the history
…cuted
  • Loading branch information
davidmurdoch committed Aug 20, 2024
1 parent cd11ad3 commit 4d2b359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion development/build/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@ function renderHtmlFile({
.replace('./scripts/load/background.ts', './load-background.js')
.replace(
'<script src="./load-background.js" defer></script>',
`${scriptTags}\n <script src="./chromereload.js" defer></script>`,
`${scriptTags}\n <script src="./chromereload.js" async></script>`,
)
.replace('<script src="./scripts/load/ui.ts" defer></script>', scriptTags)
.replace('<script src="./load-offscreen.js" defer></script>', scriptTags)
Expand Down

0 comments on commit 4d2b359

Please sign in to comment.