diff --git a/src/client/hooks/useInjectWebsiteScript.ts b/src/client/hooks/useInjectWebsiteScript.ts index f57b258..e4f1136 100644 --- a/src/client/hooks/useInjectWebsiteScript.ts +++ b/src/client/hooks/useInjectWebsiteScript.ts @@ -10,6 +10,8 @@ export function useInjectWebsiteScript() { const el = document.createElement('script'); el.src = location.origin + '/tracker.js'; el.setAttribute('data-website-id', String(websiteId)); + el.setAttribute('async', 'async'); + el.setAttribute('defer', 'defer'); document.head.append(el); } );