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

fix(feedback): Reduce force layout in screenshots #11181

Merged
merged 2 commits into from Mar 18, 2024

Conversation

c298lee
Copy link
Member

@c298lee c298lee commented Mar 18, 2024

Reduce force layout/reflow by reducing calls mentioned here

imageBuffer.width = imageSource.videoWidth;
imageBuffer.height = imageSource.videoHeight;
context.drawImage(imageSource, 0, 0, imageSource.videoWidth, imageSource.videoHeight);
const sourceWidth = imageSource.videoWidth;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not mentioned in the doc, but done as a precaution

@c298lee c298lee requested a review from a team March 18, 2024 21:12
Copy link
Contributor

github-actions bot commented Mar 18, 2024

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) 80.74 KB (added)
@sentry/browser (incl. Tracing, Replay) 72.1 KB (added)
@sentry/browser (incl. Tracing, Replay with Canvas) 75.9 KB (added)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 65.66 KB (added)
@sentry/browser (incl. Tracing) 36.7 KB (added)
@sentry/browser (incl. browserTracingIntegration) 36.7 KB (added)
@sentry/browser (incl. feedbackIntegration) 31.36 KB (added)
@sentry/browser (incl. feedbackModalIntegration) 31.48 KB (added)
@sentry/browser (incl. feedbackScreenshotIntegration) 31.49 KB (added)
@sentry/browser (incl. sendFeedback) 27.45 KB (added)
@sentry/browser 22.62 KB (added)
CDN Bundle (incl. Tracing, Replay, Feedback) 75.08 KB (added)
CDN Bundle (incl. Tracing, Replay) 69.92 KB (added)
CDN Bundle (incl. Tracing) 36.28 KB (added)
CDN Bundle 23.99 KB (added)
CDN Bundle (incl. Tracing, Replay) - uncompressed 219.62 KB (added)
CDN Bundle (incl. Tracing) - uncompressed 109.56 KB (added)
CDN Bundle - uncompressed 71.09 KB (added)
@sentry/react (incl. Tracing, Replay) 72.09 KB (added)
@sentry/react 22.64 KB (added)

@c298lee c298lee merged commit 8787900 into develop Mar 18, 2024
87 checks passed
@c298lee c298lee deleted the cl/cropping-force-layout branch March 18, 2024 23:49
cadesalaberry pushed a commit to cadesalaberry/sentry-javascript that referenced this pull request Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants