3 ms·
I wonder if it would be more instant if they used postMessage api instead of going over network.
by bawolff 3y ago
I wonder if it would be more instant if they used postMessage api instead of going over network.
- 4death4 3y agoAny local network usage should be nearly instantaneous. My personal theory about the lag is that positioning the window is not synchronized to the JS thread, so the window moves before the JS thread is aware, which means you see the square move after the window has already moved.
- bawolff 3y agoAh, my bad. I didn't read the code and just assumed there was a far away server.
- rco8786 3y agoGoing over local network is more or less instant
- crabmusket 3y agoI assume you mean BroadcastChannel? https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel https://developer.mozilla.org/en-US/docs/Web/API/BroadcastCh...