diff --git a/common/lib/xmodule/xmodule/js/src/javascript_loader.coffee b/common/lib/xmodule/xmodule/js/src/javascript_loader.coffee index 55d79993ff..a687da3538 100644 --- a/common/lib/xmodule/xmodule/js/src/javascript_loader.coffee +++ b/common/lib/xmodule/xmodule/js/src/javascript_loader.coffee @@ -62,5 +62,9 @@ class @JavascriptLoader # Need to use the DOM elements directly or the scripts won't execute # properly. $('head')[0].appendChild(s) - $(placeholder).remove() + else + # just call the completion callback directly, without reloading the file + completionHandlerGenerator(index)() + $(placeholder).remove() +