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

perf: fix hang when leaving G-Code Preview page #1949

Merged
merged 1 commit into from
Jul 17, 2024
Merged

perf: fix hang when leaving G-Code Preview page #1949

merged 1 commit into from
Jul 17, 2024

Conversation

nathanregner
Copy link
Contributor

Description

This PR fixes a performance issue when leaving the G-Code Preview page.

To reproduce:

  • Load a 3d preview from the file view. Wait for it to render.
  • Attempt to navigate away and observe the browser hanging for several seconds.

Related Tickets & Documents

For whatever reason, my Firefox started choking on this recently. Chrome at least recovered so I could get a profile 😃

Before

before

After

after

Mobile & Desktop Screenshots/Recordings

[optional] Are there any post-deployment tasks we need to perform?

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jul 17, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 17, 2024
@meteyou meteyou merged commit bf555c1 into mainsail-crew:develop Jul 17, 2024
12 checks passed
@meteyou
Copy link
Member

meteyou commented Jul 17, 2024

Thank you very much for this performance fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants