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
We could use the page visibility api to stop dirty check polling when the tab is not active.
Browsers clamp setInterval to 1s when the tab is inactive, but we're still using the CPU.
Implementation is pretty easy, but testing is hard. Need to force a new tab to open and take focus. @nevir, we should investigate making wct be able to open tabs. I'll make a manual test for now.
We could use the page visibility api to stop dirty check polling when the tab is not active.
Browsers clamp
setInterval
to 1s when the tab is inactive, but we're still using the CPU.https://github.com/Polymer/polymer-dev/blob/5a784f8828dd3f46d748a910bcf4c7be8516ab0e/src/system/flush.js#L61
The text was updated successfully, but these errors were encountered: