It is as follows, I would like a suggestion and tip to make a system correct. For example, today I use jquery and many $ .ajax requests, this is to popular some data, to send form data and etc. But I realized that I'm making too many requests for the server and I'm not sure if I'm using it right.
To give an example I have a customer registration form for example, when the registration page is open I call several requests being them:
- Load states - Load cities (when you change the state loads cities)
- Upload the jobs
- Upload the marital status
- Loads Location of the house
Among other data that dynamically populates the
My question is, what is the best way to do these requests? or what to do maybe to optimize and not fill my $ .ajax code ...
Recently I saw a post from wBruno on his personal blog saying that it is not to use jQuery too much, and I am doing exactly that haha ..
How do you work with this? When do I need to populate multiple values in a DropDown? Thanks for the tips!