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
npm (node package manager)
This method is recommended for modern web applications. The RUM Browser SDK is packaged with the rest of your front-end JavaScript code. It has no impact on page load performance. However, the SDK may miss errors, resources, and user actions triggered before the SDK is initialized. Datadog recommends using a matching version with the Browser Logs SDK.
I am hoping to understand how the claim "It has no impact on page load performance." is achieved. I had assumed that the library's source code would be baked into an application's bundle, but it looks like there may be some strategy in place to defer it's loading?
Apologies in advance if this is a naive question -- just hoping to learn and understand.
The text was updated successfully, but these errors were encountered:
dannyrb
changed the title
Understanding Performance Implications of the NPM Installation Method
🙏🏻 Understanding Performance Implications of the NPM Installation Method
Apr 2, 2024
I agree the documentation is a bit misleading. There might be an impact depending on how you are bundling the SDK code inside your application. If it's in a JS bundle that is loaded on page load, then it will probably have an impact on the page load performance, since your app will need to download the extra code.
I will see if we can find a better wording in the documentation.
We're eyeing the appropriate installation method, and noticed a slight performance decrease (for LCP) when switching to the NPM solution. It looks like it might still be the right choice, but that we'll have to experiment with how/when it's loaded when using NPM outside of the default guidance.
👋🏻 Hello!
The DataDog Docs have a nice section on "Choosing the Right Installation Method" for this library. The NPM Installation method has this description:
I am hoping to understand how the claim "It has no impact on page load performance." is achieved. I had assumed that the library's source code would be baked into an application's bundle, but it looks like there may be some strategy in place to defer it's loading?
Apologies in advance if this is a naive question -- just hoping to learn and understand.
The text was updated successfully, but these errors were encountered: