I have a auto-complete form that fetches result from server, but on slow connection it becomes erratic as data loading takes time. Is there anyway we can prefetch data from ajax source
I have a auto-complete form that fetches result from server, but on slow connection
Share
Just to answer your question, prefetch is possible using synchronous AJAX. Using jQuery, it will be (check syntax since I am on phone).
This will make sure that your data is loaded before you publish it. But as Sinethera said, this defeats entire purpose of AJAX. If you can pre-fetch the content, that means you know the expected content. Then why not put it as a static list?