Browser-support.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <base href="../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. <h1>[name]</h1>
  12. <h2>Overview</h2>
  13. <div>
  14. <p>
  15. <strong>TL;DR</strong> three.js supports most modern browsers, including Internet Explorer 11 and above.</p>
  16. <p>
  17. three.js provides WebGL, Canvas, SVG and CSS renderers. Different renderers may have different requirements of compatibility.
  18. In theory, three.js works on all browsers that support WebGL: Google Chrome 9+, Firefox 4+, Opera 15+, Safari
  19. 5.1+, Internet Explorer 11 and Microsoft Edge. More infomation can be found at
  20. <a href="https://caniuse.com/#feat=webgl" target="_blank">Can I use WebGL?</a>.
  21. </p>
  22. </div>
  23. <h2>Internet Explorer Compatibily</h2>
  24. <div>
  25. <p>
  26. It is strongly recommended to upgrade older versions of IE to IE11. If you still need to support IE9, you can use CanvasRenderer
  27. instead. Note that CanvasRenderer only supports a small subset of WebGLRenderer's features.
  28. </p>
  29. <p>
  30. For Internet Explorer, the table below lists avaiable renderers.
  31. </p>
  32. <table>
  33. <thead>
  34. <tr>
  35. <th>Renderer</th>
  36. <th>IE Version</th>
  37. </tr>
  38. </thead>
  39. <tbody>
  40. <tr>
  41. <td>WebGLRenderer</td>
  42. <td>IE11+</td>
  43. </tr>
  44. <tr>
  45. <td>CanvasRenderer</td>
  46. <td>IE9+</td>
  47. </tr>
  48. <tr>
  49. <td>SVGRenderer</td>
  50. <td>IE9+</td>
  51. </tr>
  52. <tr>
  53. <td>CSS3DRenderer</td>
  54. <td>IE10+</td>
  55. </tr>
  56. <tr>
  57. <td>CSS2DRenderer</td>
  58. <td>IE9+</td>
  59. </tr>
  60. </tbody>
  61. </table>
  62. </div>
  63. <h2>Part of ECMAScript Language Features or Web APIs Used in three.js</h2>
  64. <div>
  65. <p>
  66. Here are some features used in three.js. Some of them may require additional polyfills.
  67. </p>
  68. <table>
  69. <thead>
  70. <tr>
  71. <th>Feature</th>
  72. <th>Use Scope</th>
  73. <th>Modules</th>
  74. </tr>
  75. </thead>
  76. <tbody>
  77. <tr>
  78. <td>Typed Arrays</td>
  79. <td>Source</td>
  80. <td>BufferAttribute, BufferGeometry, etc.</td>
  81. </tr>
  82. <tr>
  83. <td>Web Audio API</td>
  84. <td>Source</td>
  85. <td>Audio, AudioContext, AudioListener, etc.</td>
  86. </tr>
  87. <tr>
  88. <td>WebVR API</td>
  89. <td>Source</td>
  90. <td>WebVRManager, etc.</td>
  91. </tr>
  92. <tr>
  93. <td>Blob</td>
  94. <td>Source</td>
  95. <td>FileLoader, etc.</td>
  96. </tr>
  97. <tr>
  98. <td>performance</td>
  99. <td>Source</td>
  100. <td>Clock, etc.</td>
  101. </tr>
  102. <tr>
  103. <td>requestAnimationFrame</td>
  104. <td>Source</td>
  105. <td>WebGLRenderer, VideoTexture, etc.</td>
  106. </tr>
  107. <tr>
  108. <td>Promise</td>
  109. <td>Examples</td>
  110. <td>GLTFLoader, GLTF2Loader, WEBVR, etc.</td>
  111. </tr>
  112. <tr>
  113. <td>Fetch</td>
  114. <td>Examples</td>
  115. <td>ImageBitmapLoader, etc.</td>
  116. </tr>
  117. <tr>
  118. <td>Web Workers</td>
  119. <td>Examples</td>
  120. <td>WWOBJLoader2, etc.</td>
  121. </tr>
  122. <tr>
  123. <td>File API</td>
  124. <td>Examples</td>
  125. <td>GLTFExporter, etc.</td>
  126. </tr>
  127. <tr>
  128. <td>URL API</td>
  129. <td>Examples</td>
  130. <td>GLTFLoader, etc.</td>
  131. </tr>
  132. <tr>
  133. <td>TextEncoder & TextDecoder</td>
  134. <td>Examples</td>
  135. <td>FBXLoader, GLTFLoader, PCDLoaderetc, STLLoader, etc.</td>
  136. </tr>
  137. <tr>
  138. <td>Pointer Lock API</td>
  139. <td>Examples</td>
  140. <td>PointerLockControls, etc.</td>
  141. </tr>
  142. </tbody>
  143. </table>
  144. </div>
  145. <h2>Polyfills</h2>
  146. <div>
  147. <p>Just import polyfills base on your requirements. Taking IE9 as an example, you need to polyfill at least these features:</p>
  148. <ul>
  149. <li>Typed Arrays</li>
  150. <li>Blob</li>
  151. <li>performance</li>
  152. <li>requestAnimationFrame</li>
  153. </ul>
  154. </div>
  155. <h3>Suggested polyfills</h3>
  156. <div>
  157. <ul>
  158. <li>
  159. <a href="https://github.com/zloirock/core-js" target="_blank">core-js</a>
  160. </li>
  161. <li>
  162. <a href="https://github.com/inexorabletash/polyfill/blob/master/typedarray.js" target="_blank">typedarray.js</a>
  163. </li>
  164. <li>
  165. <a href="https://github.com/stefanpenner/es6-promise/" target="_blank">ES6-Promise</a>
  166. </li>
  167. <li>
  168. <a href="https://github.com/eligrey/Blob.js" target="_blank">Blob.js</a>
  169. </li>
  170. <li>
  171. <a href="https://gist.github.com/paulirish/5438650" target="_blank">performance</a>
  172. </li>
  173. <li>
  174. <a href="https://gist.github.com/paulirish/1579671" target="_blank">requestAnimationFrame</a>
  175. </li>
  176. </ul>
  177. </div>
  178. </body>
  179. </html>