Skip to content
Bugwise
Menu

Feature detection

Checking whether the browser supports a feature before using it, instead of guessing from its name.

Definition

Sites should test for a feature and offer a fallback. Guessing from the user agent breaks for new or less common browsers.

In practice

Express pay is hidden in browsers without the Payment Request API instead of throwing an error.

Related terms

Esc

Type to search the whole site.