fetch-detector

JSON →
library 1.0.1 ·javascript deprecated
verified Jun 7, 2026

Detects incomplete Fetch API support (e.g., Chrome <46, Firefox <39 where response text encoding is broken) and disables native fetch, falling back to XHR polyfills. v1.0.1 – last release dated 2016. Minimal, zero-dependency bundler-friendly utility; must be used with fetch-ie8 (imported before it). Differentiates from generic fetch polyfills by conditionally enabling native fetch only on fully compliant browsers, preventing silent data corruption due to Chinese character encoding bugs.