You're calling getData inside getData. That means you're doing all the work at least twice. So the line:
shouldn't be there.
You should also switch to using promises. You can set up the data requests immediately, and the wire up the autocompletes once the data is available.
M.
window.setTimeout(getData, 1000); //To handle IP's form postback
You should also switch to using promises. You can set up the data requests immediately, and the wire up the autocompletes once the data is available.
M.