]> git.ardis.lu - 991337.xyz/commitdiff
Remove importmap polyfill
authorArdis Lu <ardisglu@gmail.com>
Thu, 30 Mar 2023 03:49:02 +0000 (20:49 -0700)
committerArdis Lu <ardisglu@gmail.com>
Thu, 30 Mar 2023 03:49:02 +0000 (20:49 -0700)
Safari supports importmap as of 16.4 (March 26, 2023) ðŸŽ‰

index.html

index c1452fbe662fa8804a522250523a1c459ea4088d..076a2e79a41a82001b3ac9adad9a653a6997e85a 100644 (file)
@@ -40,8 +40,6 @@
     <label for="auto-rotate">Auto Rotate</label>
   </div>
 
-  <script async src="https://cdn.jsdelivr.net/npm/es-module-shims@1.6.3/dist/es-module-shims.min.js"></script>
-
   <script type="importmap">
   {
     "imports": {
@@ -55,8 +53,7 @@
 
   <script type="module">
     // Importing three.js from direct CDN URL is broken after v0.127.0. Instead, importmap is required.
-    // importmap is not supported on Safari (January 2023). So es-module-shims polyfill is required
-    // to support Safari.
+    // importmap is supported on all modern web browsers as of March 26, 2023.
     import * as THREE from 'three';
     import { OrbitControls } from 'OrbitControls';
     import { FontLoader } from 'FontLoader';
This page took 0.034915 seconds and 4 git commands to generate.