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
{{ message }}
This repository has been archived by the owner on Oct 13, 2018. It is now read-only.
browser-sync seems to phone home on every single scroll event, even when ghost mode is disabled. While this may seem like a useful feature for debugging scroll stuff on multiple devices at the same time, it actually does exactly the opposite: it blocks the thread for 5-10ms, lowering the FPS further on poorly performing apps (and making it super difficult to debug them!)
There seems to be no way to disable this, and so I can't use browser-sync when debugging scroll events.
When requestIdleCallback isn't available, either debounce / throttle the scroll events, or use an interval so that it doesn't fire as often as the scroll event does (a lot).
Happy to contribute code fixes if you're happy with the approach. I don't know how to do the first one, though.
The text was updated successfully, but these errors were encountered:
I'm running browser-sync start --server --files "*" --no-ghost-mode and browser-sync is still showing up in the timeline - am I disabling it correctly?
EDIT: I was out of date. whoops.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Related: BrowserSync/browser-sync#1203
browser-sync seems to phone home on every single scroll event, even when ghost mode is disabled. While this may seem like a useful feature for debugging scroll stuff on multiple devices at the same time, it actually does exactly the opposite: it blocks the thread for 5-10ms, lowering the FPS further on poorly performing apps (and making it super difficult to debug them!)
There seems to be no way to disable this, and so I can't use browser-sync when debugging scroll events.
Here's the code in question: https://github.com/BrowserSync/browser-sync-client/blob/master/lib/ghostmode.scroll.js#L25
Suggestions:
Happy to contribute code fixes if you're happy with the approach. I don't know how to do the first one, though.
The text was updated successfully, but these errors were encountered: