@sentry/browser size
See original GitHub issue- Review the documentation: https://docs.sentry.io/
- Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
- Use the latest release: https://github.com/getsentry/sentry-javascript/releases
Package + Version
-
@sentry/browser
-
@sentry/node
-
raven-js
-
raven-node
(raven for node) - other:
Version:
4.0.2
Description
The size of the @sentry/browser is more than twice as large as the size of raven-js: 86 kB vs 39 kB (minified). In my opinion, this is definitely a regression and the serious reason not to update to the new version.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:126
- Comments:69 (46 by maintainers)
Top Results From Across the Web
How we trimmed the Sentry JavaScript SDK file size by 20%
SDKs naturally increase in size over time. After all, it does take more bytes to implement more features. This is not a big...
Read more >@sentry/browser - npm
Official Sentry SDK for browsers. Latest version: 7.28.1, last published: 4 days ago. Start using @sentry/browser in your project by running ...
Read more >@sentry/browser v7.27.0 Bundlephobia
Size of @sentry/browser v7.27.0 is 195.7 kB (minified), and 59.1 kB when compressed using GZIP. Bundlephobia helps you find the performance impact of...
Read more >@sentry/browser | Yarn - Package Manager
@sentry/browser. owner getsentry18.1mMIT7.28.0TS vulns 0 vulnerabilities. Official Sentry SDK for browsers ... Size in browser: 195.66KB ...
Read more >@sentry/browser examples - CodeSandbox
Learn how to use @sentry/browser by viewing and forking @sentry/browser example apps on CodeSandbox.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey, thanks for bringing this up. While we understand and generally agree with your concerns about bundle size I think it’s fair to first compare the gzip bundle sizes instead of the uncompressed minified file size:
@sentry/browser
is 21.3799 KBraven-js
13.44 KBAlso, while this might not be applicable to everyone, we provide and usually guide people to use our CDN Loader which will set up the SDK for you on your website.
see : https://docs.sentry.io/quickstart/?platform=browser
The footprint and impact on your pageload time of this script it <1KB gzipped while keeping the same functionality.
so tl;dr: We are aware of it, we know there is room for improvement but it’s not top priority right now.
I would argue it is also fair to compare minified sizes as perfomance issues not only arise from downloading javascript, but also from parsing and execution. ~92kb is quite hefty and could add up to 1s of parse time on low-end devices (just for this one library!).
I’m not sure where you take the number of
< 1KB
for the CDN’ed script from. Could you elaborate? When I openhttps://browser.sentry-cdn.com/4.0.4/bundle.min.js
I see a gzipped size of 22KB.You should be aware that sentry’s sdk is just one of many libraries developers include.
PS: I love sentry, it’s been super helpful for us. Web performance is just something I’m passionate about. 😉