This commit is contained in:
Ilya Kantor 2019-03-14 18:56:09 +03:00
parent d5b9b899a7
commit 5daae78137

View file

@ -53,7 +53,7 @@ To do the request, we need 3 steps:
4. Listen to events for response. 4. Listen to events for response.
There are several events for that, but these two are the most widely used: These three are the most widely used:
- `load` -- when the result is ready, that includes HTTP errors like 404. - `load` -- when the result is ready, that includes HTTP errors like 404.
- `error` -- when the request couldn't be made, e.g. network down or invalid URL. - `error` -- when the request couldn't be made, e.g. network down or invalid URL.
- `progress` -- triggers periodically during the download, reports how much downloaded. - `progress` -- triggers periodically during the download, reports how much downloaded.