Three.js: GLTFLoader: Examples reportedly failing in IE11

Created on 3 Sep 2018  路  10Comments  路  Source: mrdoob/three.js

Per Stack Overflow (https://stackoverflow.com/q/52144252/1314762, https://stackoverflow.com/questions/51558365/how-to-load-gltf-scene-in-threejs-using-ie11), GLTFLoader is reportedly not working in IE11 even when the Promise polyfill is included. Our example pages do not include the polyfill at all, and therefore also do not work.

I think we should:

  • [ ] Verify Promise polyfill is still the only thing needed to make GLTFLoader work in IE11
  • [ ] If not, update either the loader or the docs.
  • [ ] Add the promise polyfill to the existing glTF examples, with an <!--[if IE]> block, if we want them to work in IE11.
Examples Loaders

Most helpful comment

In this case I vote to close the issue since I'm not aware of that we've put polyfills in other examples. Besides, the comprehensive documentation page about GLTFLoader already notes the need for a polyfill in context of IE 11.

All 10 comments

Hm, actually I can't reproduce the issue. The DamagedHelmet example works fine for me, after including a polyfill.

screen shot 2018-09-03 at 12 13 25 am

I'm using the polyfill below. Without the polyfill, I see (as expected) "'Promise' is undefined".

<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.js"></script>

Add the promise polyfill to the existing glTF examples, with an