side note: I'm not going to use Firebug, as it is obsolete (even in Firefox). The browsers are providing all the functioniality themselves (in a more up to date variant)
-
on each keypress the data is fetched so the suggestions are populated (see 2658_1.png and 2658_2.png)
-
there is a 24.8kb big list of preloaded data, that is used to update the count, if the search matches (see 2658_3.png)
-
if the search does not match any of the preloaded ones, first it is looked in the cache and if not found there, XHR requests are made and the result is also put into the cache (see 2658_4.png and 2658_5.png)