]> git.ardis.lu - 991337.xyz/commitdiff
Preload dependencies
authorArdis Lu <ardisglu@gmail.com>
Mon, 18 Dec 2023 07:16:38 +0000 (23:16 -0800)
committerArdis Lu <ardisglu@gmail.com>
Mon, 18 Dec 2023 07:16:38 +0000 (23:16 -0800)
modulepreload must come AFTER importmap, so the <link> tags can't go in <head>.

index.html

index 7007dffbb553663ff8c68f6003e7a979a70708d9..ce936358ef96e89cd9a34e9be2dcd2ace0e37be8 100644 (file)
     }
   }
   </script>
+  <link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/three@0.159.0/build/three.module.min.js">
+  <link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/three@0.159.0/examples/jsm/controls/OrbitControls.min.js">
+  <link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/three@0.159.0/examples/jsm/loaders/FontLoader.min.js">
+  <link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/three@0.159.0/examples/jsm/geometries/TextGeometry.min.js">
 
   <script type="module">
     // Importing three.js from direct CDN URL is broken after v0.127.0. Instead, importmap is required.
This page took 0.070654 seconds and 4 git commands to generate.