Added note to load() to avoid using it to load scripts (#456)
This commit is contained in:
parent
6b8ffe79f4
commit
a0d5e89a1e
1 changed files with 2 additions and 0 deletions
|
@ -22,6 +22,8 @@ jQuery.fn.extend({
|
||||||
/**
|
/**
|
||||||
* Load HTML from a remote file and inject it into the DOM.
|
* Load HTML from a remote file and inject it into the DOM.
|
||||||
*
|
*
|
||||||
|
* Note: Avoid to use this to load scripts, instead use $.getScript.
|
||||||
|
*
|
||||||
* @example $("#feeds").load("feeds.html");
|
* @example $("#feeds").load("feeds.html");
|
||||||
* @before <div id="feeds"></div>
|
* @before <div id="feeds"></div>
|
||||||
* @result <div id="feeds"><b>45</b> feeds found.</div>
|
* @result <div id="feeds"><b>45</b> feeds found.</div>
|
||||||
|
|
Loading…
Reference in a new issue