Answer the question
In order to leave comments, you need to log in
How bad is it that 10 - 15 requests can come from each user to the server?
Background music plays on the site page. Presumably, it will accompany the user throughout the use of the site. The user can adjust the volume with the mouse wheel. In this case, each scrolling of the wheel ("mousewheel" event) sends an ajax request to the server to save the volume value in cookies. Thus, each user can send 10-15 requests per second. (See screenshot).
(And now imagine that the user thought about something and at that time began to play around with the wheel, turning it up and down).
Questions:
1. How bad is it?
2. Would it hurt me if I was planning a really big project?
3. How can you optimize the task?
Answer the question
In order to leave comments, you need to log in
At the same time, each scrolling of the wheel ("mousewheel" event) sends an ajax request to the server to save the volume value in cookies
try storing volume values in localStorage or send to server during page close
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question