Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: Windows.setTimeout() reducing my form speed

$
0
0
You're calling getData inside getData. That means you're doing all the work at least twice. So the line:
window.setTimeout(getData, 1000); //To handle IP's form postback 
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.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>