Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit 37f1b18

Browse files
feat(lhelpers): add rel preconnect attribute to script tag
closes #208
1 parent d0fe78c commit 37f1b18

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/helpers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export function loadScript (url) {
1212
const script = document.createElement('script')
1313
script.async = true
1414
script.src = url
15+
script.setAttribute('rel', 'preconnect')
1516
script.charset = 'utf-8'
1617

1718
head.appendChild(script)

0 commit comments

Comments
 (0)