Skip to main content

Harshal V. LADHE

Feature Detection in JavaScript

Checking whether a browser supports an API or syntax at runtime with `typeof`, `in`, `try`/`catch` and dynamic imports, instead of sniffing user agents.

Content tagged feature-detection

  • Post:Backwards-Compatible JavaScript: Polyfills and Baseline

    Use new JavaScript without breaking older browsers.
    Write backwards-compatible JavaScript: feature detection, safe core-js polyfills, transpiling vs polyfilling, Baseline and browserslist queries.
    Published at:
    Categories:JavaScript
    Estimated reading time:15 min read