Skip to content

Optimize backdrop rendering#71

Open
VladimirAnaniev wants to merge 1 commit intotnicola:masterfrom
VladimirAnaniev:master
Open

Optimize backdrop rendering#71
VladimirAnaniev wants to merge 1 commit intotnicola:masterfrom
VladimirAnaniev:master

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