Added note to load() to avoid using it to load scripts (#456)

This commit is contained in:
Jörn Zaefferer 2006-12-21 13:39:14 +00:00
parent 6b8ffe79f4
commit a0d5e89a1e

View file

@ -22,6 +22,8 @@ jQuery.fn.extend({
/**
* 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");
* @before <div id="feeds"></div>
* @result <div id="feeds"><b>45</b> feeds found.</div>