-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
perf: why is loading-container not removed after hide()? #2013
Comments
@perrygovier, any ideas about this? |
+1 As a note, I have been having major performance issues and even crashing when using the $ionicLoading service with a template containing the spinning icon. Spent all day tracking it down and finally alleviated the crashing by not using the spinner. |
Removing it, we'd have to add it back in when a button or something is clicked again. Adding and removing elements from the DOM is expensive and can, even if they're hidden, trigger a reflow in some older browsers, so we try not to do it if it's not necessary. If there's a way to eliminate the noise in the timeline, sweet, but I don't think we want to introduce a possible performance problem just to clean up logs. Thoughts? |
IMHO, you should juste use why do you think about the display:none? |
I also want to chime in again to point out that I have really bad crashing Cheers, On Tue, Sep 2, 2014 at 11:53 AM, Perry Govier notifications@github.com
Marc Syp, Creative Technologist WARNING: The information contained in this message is legally |
@marcsyp just off the top of my head, I wonder if maybe a good solution would be to use a CSS spinner instead of an icon. May play better with Would love to dig into that, once this pressing project is over one of my goals is to give back to the ionic community, and I have some ideas for the |
This seems like it's breaking in to multiple issues. To the original point, the animated spinner even when visibility is none, still triggers regular reflows, albeit tiny ones. Time to fix. |
Thanks @perrygovier! 🍻 |
Thanks! I'll test that before the end of the week. |
With the latest nightly, I confirmed, there is no more light-gray frames triggered in the timeline. Thank you @perrygovier |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Type: perf
Platform: all
Hey guys,
quick question: why is the div.loading-container not removed after
$ionicLoading.hide()
?I am not sure if it affects a lot the performances, but that triggers light-gray frames in the timeline of the chrome developer tools.
what was the choice behind? do you know if it affects the global performances?
Thank you for your answers.
The text was updated successfully, but these errors were encountered: