Skip to content

Commit 5b660cc

Browse files
committed
feat(loader): Make lazy-loading configurable
1 parent fad6c48 commit 5b660cc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/browser/src/loader.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
_namespace,
1010
_publicKey,
1111
_sdkBundleUrl,
12-
_config
12+
_config,
13+
_lazy
1314
) {
14-
var lazy = true;
15+
var lazy = _lazy;
1516
var forceLoad = false;
1617

1718
for (var i = 0; i < document.scripts.length; i++) {
@@ -217,4 +218,4 @@
217218
}
218219
})(window, document, 'script', 'onerror', 'onunhandledrejection', 'Sentry', 'loader.js', '../../build/bundles/bundle.js', {
219220
dsn: 'https://[email protected]/1'
220-
});
221+
}, true);

0 commit comments

Comments
 (0)