Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there a lazy loading strategy for datadog? #985

Closed
jantimon opened this issue Aug 6, 2021 · 1 comment
Closed

is there a lazy loading strategy for datadog? #985

jantimon opened this issue Aug 6, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@jantimon
Copy link

jantimon commented Aug 6, 2021

The data-dog package is larger than jQuery which was kind of surprising for me..

Is it possible to lazy load data-dog or is it important to load data-dog asap?

Is there a smart lazy loading version of data dog which loads parts like stack trace analysation only once needed?

What is the difference between browser-rum-slim and browser-rum?

@BenoitZugmeyer
Copy link
Member

For now, there is no way to lazily load parts of the RUM SDK. We have to provide support for multiple setups (NPM, CDN bundles), making such optimization hard to execute, but we are considering it and it should happen sooner or later.

If you worry that it may affect your application start time, you can use the "async setup" so it is loaded asynchronously.

Like mentioned in the README, the difference between rum-slim and rum is that it doesn't contain code for session recording, so if you don't use it (ex: you don't call DD_RUM.startSessionReplayRecording() anywhere) you can use the smaller package rum-slim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants