I agree with you. Click as many users as possible, but not too much. If your application slows down or even worsens, your browser will shut down.
My advice is to actually check how your application works when you turn it on all day. Make sure there are no memory leaks. Make sure that no ajax request is created every one and a half seconds after working with the application for a while (timers in JS can sometimes be sick).
Also, never perform user input validation using javascript. Always duplicate it on the server.
Edit
Use jquery snap to life . This will save you a lot of time by sorting through the generated content and make your architecture more understandable. Unfortunately, when I was developing jQuery, it was not yet available; we used other tools with the same effect.
In the past, I also had a problem where generating one part of a page using ajax depends on generating another part. Creating the first part of the first and second part of the second will make your page slower as expected. Plan it ahead. Design your pages so that they already have all the content you open.
Also (regarding simple pages), keep the number of files with links on one server low. Combine javascript and css libraries into one server-side file. Store the images on a separate host, separate hosts better (only create a third-level domain). Although it is worth it only in production; this will complicate the development process.
Sergej Andrejev
source share