-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Check if element '#icon' already is created #18
Labels
optimization
optimization request
Comments
Nice catch! I already noticed this behavior when I use the player last time 😉 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently mojs-player creates an element in the top of body that looks like this:
This is for using svg elements as icons in the player controller.
Problem
When using mulitple instances of mojs-player on the same page, we get dublicates of these elements.
Solution
Should be easy to check if the element already excist in the dom before creating it again.
The text was updated successfully, but these errors were encountered: