Skip to content

Could Sentry javascript performance be improved? #2233

@OZZlE

Description

@OZZlE

Important Details

How are you running Sentry?

  • On-Premise docker [Version xyz]
  • Saas (sentry.io)
  • Other [briefly describe your environment]

Description

When measuring mobile 4G performance using Google Chrome Audit (Lighthouse) removing Sentry javascript seems to improve our performance score around 3% on initial page load.

Chrome also reports (if you switch on all logging) in console:

bundle.min.js:2 [Violation] 'setInterval' handler took 239ms
bundle.min.js:2 [Violation] 'setInterval' handler took 51ms
bundle.min.js:2 [Violation] 'setInterval' handler took 117ms
bundle.min.js:2 [Violation] 'setInterval' handler took 58ms

We are using version 5.2.1

Steps to Reproduce

  1. Place Sentry.io javascript (at the very end of body - after React) on a React website with infinite scroll and scroll to load a lot of content
  2. Watch Chrome console (with all logging enabled)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions