jQuery.ready

jQuery.ready

jQuery.readyReturns: Thenable

Description: A Promise-like object (or "thenable") that resolves when the document is ready.

  • version added: 1.8jQuery.ready

As of jQuery 3.0, use of this object is supported via jQuery.when or the native Promise.resolve(). Code should not make assumptions about whether this object is a jQuery.Deferred, native Promise, or some other