@@ -20,15 +20,18 @@ Object.assign( THREE.XHRLoader.prototype, {
if ( cached !== undefined ) {
- if ( onLoad ) {
+ scope.manager.itemStart( url );
- setTimeout( function () {
+ setTimeout( function () {
+
+ if ( onLoad ) {
onLoad( cached );
+ }
- }, 0 );
+ scope.manager.itemEnd( url );
- }
+ }, 0 );
return cached;