Skip to content

Commit 64f238b

Browse files
committed
🐛 Defer script loading in vanilla example
1 parent 239b16c commit 64f238b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/vanilla-js/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default defineConfig({
2323
createHtmlPlugin({
2424
inject: {
2525
data: {
26-
injectScript: `<script src="${scriptSrc}"></script>`,
26+
injectScript: `<script defer src="${scriptSrc}"></script>`,
2727
injectCSS: `<link id="frak-button-wallet" rel="stylesheet" href="${cssSrc}" />`,
2828
injectReactScan: DEBUG
2929
? `<script src="//unpkg.com/react-scan/dist/auto.global.js"></script>`

0 commit comments

Comments
 (0)