I tried to load some scripts with jQuery, and after the download is finished I want to execute some code.
I expected to get alert(1)
called but nothing happens. The scripts are correctly downloaded (checked in console
).
$.when(
$.getScript ("/framework/static/libs/ckeditor/ckeditor/ckeditor.js"),
$.getScript ("/framework/static/libs/ckeditor/ckeditor/config.js"),
$.getScript ("/framework/static/libs/ckeditor/ckeditor/skins/bootstrapck/editor_gecko.css"),
$.getScript ("/framework/static/libs/ckeditor/ckeditor/lang/de.js"),
$.getScript ("/framework/static/libs/ckeditor/ckeditor/adapters/jquery.js"),
$.Deferred(function( deferred ){$( deferred.resolve );})
).done(function() {
alert (1);
});