diff --git a/examples/webgl_loader_gltf.html b/examples/webgl_loader_gltf.html
index a7c64f48347102..5fc7e80327b48a 100644
--- a/examples/webgl_loader_gltf.html
+++ b/examples/webgl_loader_gltf.html
@@ -35,7 +35,6 @@
let camera, scene, renderer;
init();
- render();
function init() {
@@ -63,12 +62,12 @@
const loader = new GLTFLoader().setPath( 'models/gltf/DamagedHelmet/glTF/' );
loader.load( 'DamagedHelmet.gltf', async function ( gltf ) {
- await renderer.compileAsync( gltf.scene, camera );
-
scene.add( gltf.scene );
- render();
+ await renderer.compileAsync( scene, camera );
+ render();
+
} );
} );
diff --git a/examples/webgl_loader_gltf_transmission.html b/examples/webgl_loader_gltf_transmission.html
index 9b2e20a2126a72..5289509dd8af3c 100644
--- a/examples/webgl_loader_gltf_transmission.html
+++ b/examples/webgl_loader_gltf_transmission.html
@@ -65,13 +65,11 @@
new GLTFLoader()
.setPath( 'models/gltf/' )
.setDRACOLoader( new DRACOLoader().setDecoderPath( 'jsm/libs/draco/gltf/' ) )
- .load( 'IridescentDishWithOlives.glb', async function ( gltf ) {
+ .load( 'IridescentDishWithOlives.glb', function ( gltf ) {
mixer = new THREE.AnimationMixer( gltf.scene );
mixer.clipAction( gltf.animations[ 0 ] ).play();
- await renderer.compileAsync( gltf.scene, camera );
-
scene.add( gltf.scene );
} );