-
Notifications
You must be signed in to change notification settings - Fork 30
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
Pause WindowSynchronizerService #51
Comments
Can you elaborate on this a bit? If you don't add the |
Sure! I have a settings: {
showPopoutIcon: false,
showMaximiseIcon: false,
showCloseIcon: false
} When I profile in Chrome, I see this timer firing occasionally: ng6-golden-layout/projects/ngx-golden-layout/src/lib/window-sync.service.ts Lines 38 to 42 in d984d18
It's a very small amount of CPU utilization, but figured it would be nice to turn it off if I didn't need it. I don't see any references to |
That's not a concern, since these are the times, angular would tick anyway. ng6-golden-layout/projects/ngx-golden-layout/src/lib/window-sync.service.ts Lines 33 to 42 in d984d18
What I'm doing here is overwriting the I need to do that in all windows and whenever any of the windows occurs to have a tick, share this tick between all windows. This infers calling the original As long as you have a single window, all ticks originate from some interaction on your site (you might want to read a bit on zone.js for this matter). For more information about performance and alternatives to broadcasting, consider #14. |
Ahhh, I understand; that makes sense. Thanks for the explanation! |
Hi!
I'm using
ngx-golden-layout
in a project that is not using GL's pop-out feature. As such, I don't need synchronization of Angular services between windows. I notice while profiling my app that the service is ticking in the background when the app is idle. Is it possible to configurengx-golden-layout
to disable popouts/turn off the sync service?Thanks for writing these bindings, they're awesome!
The text was updated successfully, but these errors were encountered: