[Resolved] SVG Icons – host locally or use HTML?

Home Forums Support [Resolved] SVG Icons – host locally or use HTML?

Home Forums Support SVG Icons – host locally or use HTML?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1626214
    Baz

    What’s the best practice for adding your own SVG icons in GP theme?

    I can create a ‘Icons’ folder (similar to fonts) and link to icons, or is it better to just place the SVG HTML code whenever it is needed?

    Just wanted to know which option to use for optimal speed/performance.

    Thanks.

    #1626569
    David
    Staff
    Customer Support

    Hi there,

    For simple Icons – inline is the more ( although not necessarily noticeably ) performant method.

    Warning on super complex SVGs that have lots of paths, they can trip excessive DOM node warnings in Googles metrics. Only see this once, but the user had a SVGs with 50+ paths in them 🙂

    #1626728
    Baz

    Thank you David.

    By ‘inline’, do you mean use the insert HTML method?

    #1627064
    Elvin
    Staff
    Customer Support

    Hi,

    By ‘inline’, do you mean use the insert HTML method?

    Yes, “Inline SVG” is <svg> added directly within the HTML structure.

    A wise man once said:
    "Have you cleared your cache?"

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.