We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9af1886 commit b024902Copy full SHA for b024902
packages/browser/src/loader.js
@@ -58,7 +58,7 @@
58
// come out in the wrong order. Because of that we don't need async=1 as GA does.
59
// it was probably(?) a legacy behavior that they left to not modify few years old snippet
60
// https://www.html5rocks.com/en/tutorials/speed/script-loading/
61
- var _currentScriptTag = _document.getElementsByTagName(_script)[0];
+ var _currentScriptTag = _document.scripts[0];
62
var _newScriptTag = _document.createElement(_script);
63
_newScriptTag.src = _sdkBundleUrl;
64
_newScriptTag.setAttribute('crossorigin', 'anonymous');
0 commit comments