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

Reuse webviews in walkthrough steps instead of creating them each time. #186267

Merged
merged 1 commit into from
Jun 27, 2023

Conversation

bhavyaus
Copy link
Collaborator

Fixes:
#166890

We used to recreate webviews for each step. Creating webviews adds a delay due to the underlying scaffolding necessary.
With this change, we only recreate webviews when the type of media being used for the step changes.
For example, when we transition from a step with an image media type to a step with svg or markdown media type.

For the built in walkthroughs (which mostly use SVGs) image rendering times are faster (verified via Performance profiles as well).

Also verified for walkthroughs from extensions such as GitLens, Luna paint (which mostly use markdown media).

Copy link
Member

@hediet hediet left a comment

Choose a reason for hiding this comment

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

Test

Copy link
Member

@hediet hediet left a comment

Choose a reason for hiding this comment

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

Test

@bhavyaus bhavyaus merged commit 4ddef94 into main Jun 27, 2023
5 checks passed
@bhavyaus bhavyaus deleted the dev/bhavyau/webviews branch June 27, 2023 17:20
@github-actions github-actions bot locked and limited conversation to collaborators Aug 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants