Cache votes locally, and upload them no more often than once per every 5 seconds.
The problem right now is that every single vote generates a server request, which is kind of silly, especially when you can just collect a bunch of them together and submit them all at once.
Cache votes locally, and upload them no more often than once per every 5 seconds.
The problem right now is that every single vote generates a server request, which is kind of silly, especially when you can just collect a bunch of them together and submit them all at once.