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

Optimize backdrop rendering #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

VladimirAnaniev
Copy link

Noticed that the backdrop was removed and then re-drawn on each step of the tour.
These operations for removing and then creating new DOM elements are expensive and can be avoided as only a couple of styles are changed. We can only update the needed properties when needed.
Other benefit of reusing the same elements is the ability to incorporate animations on transition later.

I have implemented this optimization with this change.

@tnicola
Copy link
Owner

tnicola commented Mar 13, 2020

Hello @VladimirAnaniev , Thanks for your PR. Can you please resolve the conflicts?

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.

2 participants