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 5b660cc commit f09a965Copy full SHA for f09a965
packages/browser/src/loader.js
@@ -17,7 +17,11 @@
17
18
for (var i = 0; i < document.scripts.length; i++) {
19
if (document.scripts[i].src.indexOf(_publicKey) > -1) {
20
- lazy = !(document.scripts[i].getAttribute('data-lazy') === 'no');
+ // If lazy was set to true above, we need to check if the user has set data-lazy="no"
21
+ // to confirm that we should lazy load the CDN bundle
22
+ if (lazy && document.scripts[i].getAttribute('data-lazy') === 'no') {
23
+ lazy = false;
24
+ }
25
break;
26
}
27
0 commit comments