Custom code over 10K with <g> SVG element

I’m building an interactive map that has multiple SVG elements. What’s the best way to embed it into a webflow page?


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

Hi @USchwein,

If your script type is javascript, you can add it as .txt file to the assets panel. Then call the script with the following line in your custom code page settings:

<script type="text/javascript" src="path-to-javascript-file.js"></script>

Replace “path-to-javascript-file” with the URL from the asset panel.

Hi @USchwein - did you even manage to solve this in the end? I’m having the same difficulty.
Thanks :slight_smile: