Currently, I am developing a small website that features a simple 3D animation. The model is extruded from an SVG file loaded using SVGLoader. My goal is to enhance the loading speed by including the SVG as text in my threejs code, eliminating the need for a separate http request and allowing for instant execution.
What would be the best approach to achieve this? Would converting it to an STL file make the process easier?
Essentially, all I want to do is eliminate the need for a separate http request and integrate the model directly into the code.
Here is the code snippet documenting my current approach with the loader: https://github.com/riccardolardi/studioriccardolardi/blob/master/src/components/BG.svelte#L45
Thank you!