Commit a0d5e89a authored by Jörn Zaefferer's avatar Jörn Zaefferer

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

parent 6b8ffe79
...@@ -22,6 +22,8 @@ jQuery.fn.extend({ ...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment