Skip to content

Commit e6becab

Browse files
committed
iPad Jank Quick Fix
Fixes the issue of iPad2 iOS7 ScreenJank Upon start/search
1 parent 4862f5f commit e6becab

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

examples/css3d_youtube.html

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,15 @@
269269
request.send( null );
270270

271271
}
272-
272+
273+
function addToView(data,time) {
274+
setTimeout(function(){
275+
scene.add(
276+
new Element( data )
277+
);
278+
},time);
279+
}
280+
273281
function onData( event ) {
274282

275283
var data = JSON.parse( event.target.responseText );
@@ -279,9 +287,8 @@
279287

280288
for ( var i = 0; i < entries.length; i ++ ) {
281289

282-
var object = new Element( entries[ i ] );
283-
scene.add( object );
284-
290+
addToView(entries[ i ], i * 100);
291+
285292
}
286293

287294
}

0 commit comments

Comments
 (0)