Timeline for Google Autocomplete Fun
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 26, 2017 at 6:03 | comment | added | Steve Bennett | OIC. Because fetch() returns before the body has necessarily even been fully received. | |
| Apr 26, 2017 at 6:01 | comment | added | Steve Bennett | Promise's verbosity isn't the problem, it's fetch. I'd really love to know why .json() is async. | |
| Apr 24, 2017 at 20:41 | comment | added | Stephan Bijzitter | Oh, you're completely right! I never even noticed ;O | |
| Apr 24, 2017 at 19:33 | comment | added | bren | @StephanBijzitter .json() returns a Promise, it's async, for some reason | |
| Apr 24, 2017 at 19:32 | comment | added | bren | @ETHproductions Yes, there are CORS problems, you must execute on the domain suggestqueries.google.com | |
| Apr 24, 2017 at 15:35 | comment | added | ETHproductions | I've tried in Firefox 52 and Chrome 57, on this page, Google's homepage, and about:blank, and I just keep getting CORS errors. Have you gotten it to work successfully? | |
| Apr 24, 2017 at 13:23 | comment | added | Stephan Bijzitter | .then(r=>r.json()).then(r=>r[1][0]) -> .then(r=>r.json()[1][0]) Enjoy 11 characters less ;-) | |
| Apr 24, 2017 at 0:11 | history | answered | bren | CC BY-SA 3.0 |