You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 10, 2023. It is now read-only.
loader
.script('hoge.js')
.script('fuga.js')
.ready(function(){
loader.script('moo.js');
});
みたいなのは、IEで絶対に動かない気がしてきた。
なぜなら、IEは一連のロード監視をonreadystatechangeで行っているので、ready内は実質非同期になっており、この中でdocument.writeするとページがさっぱり書き変わる動作になってしまうため。
これを回避するにはどうするか、例えばキューのような仕組みを作って順番に実行させるようにするか・・・などなどと考えだしたら、それなら他の非同期ローダーでいいってことにならない?と思ったので、そこで止めた。
このローダーは、loaderをネストさせないでざざーっと読み込んで.readyするだけ。
それ以上の機能を求めるなら非同期ローダー使おうぜ
っていうぐらいの役割でいい気がするんだけどどうでしょ?
The text was updated successfully, but these errors were encountered: