From 775671f526c4f18f2d8ee7e54537df9dd9a9a0e8 Mon Sep 17 00:00:00 2001 From: Aurelio De Rosa Date: Tue, 20 Dec 2016 15:24:23 +0000 Subject: [PATCH] load(): Specified that load event alias is deprecated Fixes #976 --- entries/load.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entries/load.xml b/entries/load.xml index 951c43f6..3444cb90 100644 --- a/entries/load.xml +++ b/entries/load.xml @@ -21,7 +21,7 @@ Load data from the server and place the returned HTML into the matched element.
-

Note: The event handling suite also has a method named .load(). jQuery determines which method to fire based on the set of arguments passed to it.

+

Note: Prior to jQuery 3.0, the event handling suite also had a method named .load(). Older versions of jQuery determined which method to fire based on the set of arguments passed to it.

This method is the simplest way to fetch data from the server. It is roughly equivalent to $.get(url, data, success) except that it is a method rather than global function and it has an implicit callback function. When a successful response is detected (i.e. when textStatus is "success" or "notmodified"), .load() sets the HTML contents of the matched element to the returned data. This means that most uses of the method can be quite simple: