SEARCH BY KEYWORD - GETTING MAXIMAL NUMBER OF ITEMS
A. In this page's script beside the stop-searching-signal typeof response.nextPageToken == 'undefined' I have added the second signal: response.items.length == 0 Those two signals are combined to make the condition sentence: if((response.items.length == 0)||(typeof response.nextPageToken == 'undefined')) {alert('SUCCESS!'); /* ... */} By this, instead of waiting for 20 retrieving JSON pages (i.e for <= 1000 items) I need to wait for only 12,13 or 14 pages. Therefore search time is reduced to 60%,70%. In the end (for example, from page 15 to page 20) we might see: items:[] => (response.items.length == 0) is true I went to this solution after I had done the experiments to observe the specific content of a series of JSON pages sent by Google servers. SOURCE CODE OF THIS WEB (search-max-new2.html) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-