You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The doc says:

But when you create a JavaScript project and check the settings,
everything is actually turned off. We [recently changed the defaults so
all options start
disabled](getsentry/sentry#86395). Before, when
they were all checked by default, the page would send a request on load
to update the script loader configuration — but now it doesn’t.
Basically, everything seems to be False (disabled) by default, so this
PR updates the docs to reflect that.
Copy file name to clipboardExpand all lines: docs/platforms/javascript/common/install/loader.mdx
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ To use the loader, go in the Sentry UI to **Settings > Projects > (select projec
50
50
></script>
51
51
```
52
52
53
-
By default, Tracing and Session Replay are enabled.
53
+
By default, Tracing and Session Replay are disabled.
54
54
55
55
## Source Maps
56
56
@@ -171,17 +171,17 @@ By default, the loader will make sure you can call these functions directly on `
171
171
-`Sentry.showReportDialog()`
172
172
173
173
If you want to call any other method when using the Loader, you have to guard it with `Sentry.onLoad()`. Any callback given to `onLoad()` will be called either immediately (if the SDK is already loaded), or later once the SDK has been loaded:
// Guard against window.Sentry not being available, e.g. due to Ad-blockers
187
187
window.Sentry&&
@@ -203,10 +203,10 @@ If you want to understand the inner workings of the loader itself, you can read
203
203
## Limitations of Tracing
204
204
205
205
Because the loader script injects the actual SDK asynchronously to keep your pageload performance high, the SDK's tracing functionality is only available once the SDK is loaded and initialized.
206
-
This means that if you e.g. have `fetch` calls right at the beginning of your application, they might not be traced.
206
+
This means that if you e.g. have `fetch` calls right at the beginning of your application, they might not be traced.
207
207
If this is a critical issue for you, you have two options to ensure that all your `fetch` calls are traced:
208
208
209
-
- Initialize the SDK in `window.sentryOnLoad` as described in [Custom Configuration](#custom-configuration). Then make your `fetch` call in the `Sentry.onload` callback.
209
+
- Initialize the SDK in `window.sentryOnLoad` as described in [Custom Configuration](#custom-configuration). Then make your `fetch` call in the `Sentry.onload` callback.
210
210
<Expandabletitle="Example">
211
211
```html
212
212
<script>
@@ -216,9 +216,9 @@ If this is a critical issue for you, you have two options to ensure that all you
@@ -230,7 +230,7 @@ If this is a critical issue for you, you have two options to ensure that all you
230
230
231
231
<Alertlevel="warning">
232
232
233
-
Please be aware that both of these options will add delay to your `fetch` calls or decrease your pageload performance. Ultimately, this is the trade-off between lazy and eagerly loading the Sentry SDK.
233
+
Please be aware that both of these options will add delay to your `fetch` calls or decrease your pageload performance. Ultimately, this is the trade-off between lazy and eagerly loading the Sentry SDK.
0 commit comments