mrdoob/three.js — pull request #3933 by stammen (2013-10-01 15:24:03+00:00)
Title: IE11 CTM Loader XHR2 fix for overrideMimeType

IE11 does not correctly support overrideMimeType. This pull request adds XHR2 support to the CTM Loader when available. The following changes were made:

CTMLoader.js

1. Uses if ( 'FormData' in window ) to test for XHR2 support. This is the same test used by Modernizer.
2. If no XHR2 support, older overrideMimeType method is used.

ctm.js

1. Added support to handle ArrayBuffer returned by XHR2 response.
2. String support is still used if response is text from overrideMimeType XHR request.

If the use of XHR2 is acceptable, similar changes to the other loaders will be made to add XHR2 support and fix the IE11 problem with overrideMimeType.

Note: This pull request only fixes the problem in IE11 with the use of overrideMimeType. The scene will partially load but some of the shaders will not compile due to IE11 shader compiler bugs.