modulepreload must come AFTER importmap, so the <link> tags can't go in <head>.
}
}
</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.