From 7f1299441cfe8afb1b829795abf7d16ecc0ae334 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Wed, 22 Mar 2017 02:02:01 -0700 Subject: [PATCH] jQuery.ready: create page Also categorise jQuery.holdReady in events/document-loading and properties/global-jquery-object-properties, to match jQuery.ready. Fixes #205 Closes #983 --- entries/jQuery.holdReady.xml | 2 ++ entries/jQuery.ready.xml | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 entries/jQuery.ready.xml 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. + + + + + + +