Skip to content

Commit 5274a11

Browse files
authored
jQuery.getScript: Script has been executed before the success callback
When executing a callback provided to the optional `success` parameter of `$.getScript()`, we can assume the script has been executed already. Just like when using `.done()` on the returned jqXHR object. Fixes gh-1207 Closes gh-1209
1 parent bf40aa3 commit 5274a11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/jQuery.getScript.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ $.ajax({
2727
<h4 id="success-callback">
2828
Success Callback
2929
</h4>
30-
<p>The callback is fired once the script has been loaded but not necessarily executed.</p>
30+
<p>The callback is fired once the script has been loaded and executed.</p>
3131
<p>Scripts are included and run by referencing the file name:</p>
3232
<pre><code>
3333
$.getScript( "ajax/test.js", function( data, textStatus, jqxhr ) {

0 commit comments

Comments
 (0)