diff --git a/entries/jQuery.holdReady.xml b/entries/jQuery.holdReady.xml index cb795f2f..016e951a 100644 --- a/entries/jQuery.holdReady.xml +++ b/entries/jQuery.holdReady.xml @@ -22,5 +22,7 @@ $.getScript( "myplugin.js", function() { ]]> + + diff --git a/entries/jQuery.ready.xml b/entries/jQuery.ready.xml new file mode 100644 index 00000000..cc1a98f1 --- /dev/null +++ b/entries/jQuery.ready.xml @@ -0,0 +1,36 @@ + + + jQuery.ready + A Promise-like object (or "thenable") that resolves when the document is ready. + + 1.8 + + +

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 type of promise object.

+

See also ready(), which makes use of this.

+
+ + Listen for document ready using jQuery.when. + + + + Typical usage involving another promise, using jQuery.when. + + + + + + +