javascript - ajaxStart/ajaxStop for RequireJS -
in requirejs, there functions equivalent jquery's ajaxstart , ajaxstop? or how monitor global ajax status while requirejs loading new javascript file?
no, there no such thing. modules not loaded using xhr. there javascript files injected in dom , requirejs waits script load.
you can setup callback called when module loaded:
require(['yourmodule'], function (module) { alert('module has loaded.'); }
Comments
Post a Comment