I develop a website based on the way that every front end thing is written in JavaScript. Communication with server is made trough JSON. So I am hesitating about it: – is the fact I’m asking for every single data with http request query OK, or is it completely unacceptable? (after all many web developers change multiple image request to css sprites).
Can you give me a hint please?
Thanks
If you can request multiple related things at once, do it.
But there’s no real reason against sending multiple HTTP requests – that’s how AJAX apps usually work. 😉
The reason for using sprites instead of single small images is to reduce loading times since only one file has to be loaded instead of tons of small files at once – or at a certain time when it’d be desirable to have the image already available to be displayed.