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.
Learn it in context
Lessons that use this term.