Skip to content

Commit d69e159

Browse files
HazATmydeashanamatthews
authored
feat: Adjust Loader docs (#6601)
--------- Co-authored-by: Francesco Novy <francesco.novy@sentry.io> Co-authored-by: Shana Matthews <shana.l.matthews@gmail.com>
1 parent 2a5a427 commit d69e159

File tree

10 files changed

+242
-269
lines changed

10 files changed

+242
-269
lines changed

src/docs/product/session-replay/performance-overhead.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Sentry's Session Replay SDK takes several measures to avoid negatively impacting
1818

1919
- At the time of publishing this document, the Session Replay plugin is an additional ~36KB gzipped.
2020
- In our own research, this is among the smallest filesize Session Replay SDKs available.
21-
- We provide multiple ways to load the Replay bundle, including [directly from our CDN](https://docs.sentry.io/platforms/javascript/install/cdn/).
21+
- We provide multiple ways to load the Replay bundle, including [via our Loader Script](/platforms/javascript/install/loader/).
2222
- The Session Replay SDK works by snapshotting the web page’s Document Object Model (DOM) and transmitting its content to Sentry’s servers. To minimize the amount of bytes transferred, multiple strategies are employed:
2323
- Once the initial DOM tree is snapshotted, the SDK records and transmits *changes* (deltas) to the DOM rather than snapshotting the entire tree again. This ensures the smallest amount of state is transmitted to facilitate playback. Additionally, the SDK does not spend CPU cycles scanning for changes itself; instead it listens for changes emitted by [`MutationObserver`](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver), an internal browser API.
2424
- DOM content itself is gzip compressed client-side before transmission over HTTP. The compression operation is executed in a background thread using a [Web Worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers), which means the browser’s UI thread is unaffected.
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
Tracing is included by default in the Sentry JavaScript npm packages.
22

3-
If you are using the CDN, make sure you are using a [CDN bundle that has performance monitoring enabled](/platforms/javascript/install/cdn/#default-bundle).
3+
If you are using the Loader Script, make sure to enable "Performance" under **Settings > Projects > Client Keys (DSN)**.
4+
5+
If you are using the CDN, make sure you are using a [CDN bundle that has performance monitoring enabled](/platforms/javascript/install/loader/#default-bundle).
6+

src/platform-includes/troubleshooting/older-browser-support/javascript.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ Though the above example is Webpack-specific, similar changes can be made to con
4646
"javascript.wasm",
4747
]}>
4848

49-
As an alternative, you can use one of our ES5-specific <PlatformLink to="/install/cdn/#available-bundles">CDN bundles</PlatformLink>.
49+
As an alternative, you can use one of our ES5-specific <PlatformLink to="/install/loader/#available-bundles">CDN bundles</PlatformLink>.
5050

5151
</PlatformSection>

src/platforms/javascript/common/install/cdn.mdx

Lines changed: 0 additions & 114 deletions
This file was deleted.
Loading

src/platforms/javascript/common/install/lazy-load-sentry.mdx

Lines changed: 0 additions & 104 deletions
This file was deleted.

0 commit comments

Comments
 (0)