-
Notifications
You must be signed in to change notification settings - Fork 344
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
azur theme has efficiency problem #425
Comments
I think, only major difference between Azur an Twelve is, that Azur uses canvas for some visual effects. |
So in my app, the user would initialize the gallery and then remove it from the dom many times, but I couldn't find a way to shut off the gallery code after it has been initialized. In azur, there was some loop() function, which does look related to the canvas you mentioned, which kept running after the gallery was destroyed. |
Did you try API method "destroy"? https://galleriajs.github.io/docs/api/methods.html#destroy Not sure, if it can help, just a first idea. |
I'm not sure what it is, but in my application (where I might open and close the gallery many times), the azur theme seems to continue working in the background and use up a lot of CPU. I switched to twelve theme because of it.
Also, I sincerely appreciate this project. I tried to use two other gallery libs before this, and couldn't get them to work at all. This one works and looks great. I couldn't find a place to donate, but if anyone can point me, I'd happily donate to support development on this project.
The text was updated successfully, but these errors were encountered: