From ddb3d4ab075605af30f569bd06d5d3a082e0188e Mon Sep 17 00:00:00 2001 From: Gustavo Rodrigues Date: Fri, 30 Aug 2019 09:55:32 -0300 Subject: [PATCH] Update fetch() browser support in docs (#2522) * Update fetch() browser support in docs As https://caniuse.com/#feat=fetch shows it's supported since Safari 10.1. * Update docs/request.md Co-Authored-By: Isiah Meadows [skip ci] --- docs/request.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/request.md b/docs/request.md index 4d454147..3fe2fb99 100644 --- a/docs/request.md +++ b/docs/request.md @@ -494,7 +494,7 @@ Mithril's `m.request` uses `XMLHttpRequest` instead of `fetch()` for a number of - `fetch` is not fully standardized yet, and may be subject to specification changes. - `XMLHttpRequest` calls can be aborted before they resolve (e.g. to avoid race conditions in for instant search UIs). - `XMLHttpRequest` provides hooks for progress listeners for long running requests (e.g. file uploads). -- `XMLHttpRequest` is supported by all browsers, whereas `fetch()` is not supported by Internet Explorer, Safari and Android (non-Chromium). +- `XMLHttpRequest` is supported by all browsers, whereas `fetch()` is not supported by Internet Explorer and older Android (prior to 5.0 Lollipop). Currently, due to lack of browser support, `fetch()` typically requires a [polyfill](https://github.com/github/fetch), which is over 11kb uncompressed - nearly three times larger than Mithril's XHR module.