If you don't like copy pasting inline SVG, you're welcome :)
- Download
svgx.js
and import it with<script>
tag.
Add script tag to your HTML page <script src="js/svgx.js">
Initalize SVGX
via
const svgx = new Svgx();
svgx.init()
In html
<svg data-src="https//example.com/someSvg.svg"></svg>
or
<svg data-src="icons/someSvg.svg"></svg>