jQuery support Property

Beginner
5 min read
Updated: Nov 2026
3 examples
Utilities

Definition

jQuery.support (alias $.support) is an object of internal browser feature/bug test results that jQuery uses to pick cross-browser code paths (since jQuery 1.3). It is not a public feature-detection API for your apps.

Syntax

Start with these common calls. Keep them short and readable.

jQuery
typeof jQuery.support        // "object"
Object.keys(jQuery.support) // internal flag names (may change)

// ❌ Do not rely on this in app code:
if ($.support.someFlag) { … }

// ✅ Detect what you need instead:
CSS.supports("display", "flex")
typeof fetch === "function"
CallWhat it does
ArgumentsNone — it is a property, not a method
TypeObject of internal flags
AudiencejQuery internals (not your app)

Load jQuery before your script (CDN or local file), then wrap DOM work in $(function () { ... }) when needed.

Parameters

ParameterDescription
Step 1Load jQuery in the browser ($.support needs a DOM).
Step 2Inspect with Object.keys($.support) if you are reading legacy code.
Step 3Treat every property as unstable — it may be a boolean or a lazy function (1.11+).

Return Value

Return ValueDescription
BooleanOften true or false depending on the match or state.
Value / undefinedGetters usually return a value from the first matched element, or undefined when nothing applies.

jQuery Examples

Example 1 — List Support Property Names

See which internal keys exist in the current jQuery build.

jQuery
console.log($.fn.jquery);
console.log(typeof $.support);
console.log(Object.keys($.support).length);
console.log(Object.keys($.support).join(", "));
Try It Yourself

How It Works

  1. Version. $.fn.jquery shows which jQuery build is loaded.
  2. Object. $.support is always an object when jQuery is present.
  3. Keys. Object.keys lists the current internal flag names.

Example 2 — Booleans vs Lazy Functions

Since 1.11/1.12, some entries are functions that run a test when called.

jQuery
Object.keys($.support).forEach(function (key) {
  console.log(key + ": " + typeof $.support[key]);
});
Try It Yourself

How It Works

  1. Iterate keys. Walk every property on $.support.
  2. Check typeof. Some values are "boolean", others "function".
  3. Lazy tests. Function properties delay expensive checks until first use.

Example 3 — JSON.stringify Pitfall

Functions are skipped or cause surprises when you stringify the whole object.

jQuery
try {
  console.log(JSON.stringify($.support).length);
} catch (err) {
  console.log("failed:", err.message);
}
// Safer: serialize keys only
console.log(JSON.stringify(Object.keys($.support)));
Try It Yourself

How It Works

  1. Official note. Since 1.11/1.12, $.support is not reliably JSON-serializable.
  2. Functions dropped. JSON.stringify skips function properties.
  3. Keys snapshot. Logging Object.keys($.support) is safer for debugging.

Frequently Asked Questions

jQuery.support is an object on the global jQuery namespace that caches results of internal browser capability tests. jQuery uses these flags to pick cross-browser code paths for DOM, CSS, and events. It was added in jQuery 1.3.
Yes. jQuery.support was deprecated in jQuery 1.9. The official docs state it is intended for jQuery's internal use only. Application code should not depend on its properties — they may be removed without notice to improve startup performance.
No — jQuery explicitly recommends against it. Use a dedicated library such as Modernizr, or native checks like CSS.supports(), 'fetch' in window, or element.canPlayType(). Those APIs are stable public contracts; jQuery.support properties are not.
Since jQuery 1.11 or 1.12, some support properties are lazy functions that run a test when called, not plain booleans. That deferred testing speeds page load. JSON.stringify cannot serialize functions, so logging the whole object to JSON fails or omits entries.
Yes — a trimmed set of internal flags remains in jQuery 3.7.x for jQuery's own modules. The object is still reachable as jQuery.support or $.support, but it is not a supported public API for developers.
Both were early jQuery browser-detection helpers. jQuery.browser (from navigator.userAgent) was removed in 1.9. jQuery.support tests features and bugs instead of parsing user-agent strings, but it was also deprecated in 1.9 for external use.

Next: jQuery.browser Property

Learn the removed user-agent sniffing object and what to use instead.

jQuery.browser Property tutorial →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful