kof / loader

[dev] lazyload of js,css, images and templates, define your customized dependencies package, where you can not only describe all dependencies, but also define which files can be loaded asynchron and which synchron.
jsui.de
6 stars 0 forks source link

detect if includes already been loaded #2

Open fuxifex opened 14 years ago

fuxifex commented 14 years ago

i've discovered the following issue: when trying to load a .css which has already been loaded previously, the loader is stuck (using firefox). seems like it doesn't auto-skip it and doesnt reach the all-done-event.

kof commented 14 years ago

I will check it.

fuxifex commented 14 years ago

i could fix it - at this statement: if ( haveToLoad(file.url, s.domCheck, file.type, complete) )

i added: else{complete(file.url,'success');}

kof commented 14 years ago

can you show me please your code which can reproduce this? I am curently trying to do this and it works: loader({ css: "jquery.ui.core.css", success: function( files, s ) { ok(true, 'first callback'); loader({ css: "jquery.ui.core.css", success: function( files, s ) { ok(true, 'seccond callback'); start(); } }); } });

kof commented 13 years ago

is here something new? I still can't reproduce the issue ....