The SVG sprite icons are not working if they are sourced from an external file.
I invested 4 hours without any luck. Then I searched the mosh’s code of ‘Moshify’ project. SVG icons are not working for Mosh’s provided code as well.
Please let me know how to fix this. Thank you.
The problem is not the browser but the URL. If you open the file from the file system relative URLs in the document are file://-URLs while they are http://- or https://-URLs when hosted on a web server (like Live Server). file://-URLs are considered unsafe for many reasons so browsers apply several restrictions on them.