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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -