Web Workers can be useful for sending data to the backend without needing it to do it on every user interaction.
It can also be used for batching these interactions together and then sending them to the server.
Or for refreshing access token from server to avoid trips to do it manually on each request.
Web Workers can be useful for sending data to the backend without needing it to do it on every user interaction. It can also be used for batching these interactions together and then sending them to the server. Or for refreshing access token from server to avoid trips to do it manually on each request.