question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@sentry/browser size

See original GitHub issue

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:closed
  • Created 5 years ago
  • Reactions:126
  • Comments:69 (46 by maintainers)

github_iconTop GitHub Comments

82reactions
HazATcommented, Sep 20, 2018

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 KB raven-js 13.44 KB

Also, 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.

61reactions
klaemocommented, Sep 25, 2018

I think it’s fair to first compare the gzip bundle sizes instead of the uncompressed minified file size:

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 open https://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. 😉

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found