Hacker News new | ask | show | jobs
by mlthoughts2018 2931 days ago
Earnest question from someone without much front-end knowledge: how is browser-based mouse tracking performed in a way that doesn't significantly degrade performance?

Do they use some type of client-side library that caches data for a while and asynchronously uploads it occasionally? Or occasionally try to asynchronously sample the mouse position and just get a coarser set of data?

It seems like real-time requests that respond to mouse changes would create huge performance problems and/or be easily stopped with browser extensions.

1 comments

Capturing, collecting and forwarding mouse movement events can be done at almost no cost. 10 locs max.