You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, every mouse click or keyboard press is changing the content of the style tag, forcing the browser to recalculate the style:
You can avoid changing the content of style_element on set_css if the new content is the same as the current one.
Since I don't need support for IE, I have used the following:
However, the code can be changed to allow support for IE by checking the other method as well, or maybe keeping a boolean variable inside the anonymous function
The text was updated successfully, but these errors were encountered:
Right now, every mouse click or keyboard press is changing the content of the style tag, forcing the browser to recalculate the style:
You can avoid changing the content of style_element on set_css if the new content is the same as the current one.
Since I don't need support for IE, I have used the following:
However, the code can be changed to allow support for IE by checking the other method as well, or maybe keeping a boolean variable inside the anonymous function
The text was updated successfully, but these errors were encountered: