Jump to main content

Nicolas Hoizey

  • articles
  • billets
  • links
  • notes
  • talks
  • archives
  • about

Note from 13 December 2022

  • Nicolas Hoizey
  • 13 December 2022
  • image, SVG, WebPerf
  • 14 reactions

⚠️ Be carefull if you use SVGO or SVGOMG to optimize #SVG images using <symbol>s.

There's a bug that might remove them when it shouldn't:
https://github.com/svg/svgo/issues/1726

Screencast of the bug in SVGOMG

14 reactions

6 likes

  1. WebPerformance Report avatar
  2. Bigou avatar
  3. Christophe avatar
  4. Tyler Sticka avatar
  5. Dave Rupert avatar
  6. Sylvester Duda :polarbear: avatar

7 reposts

  1. Emmanuel 🌱 avatar
  2. WebPerformance Report avatar
  3. webetcaetera avatar
  4. Bigou avatar
  5. Aimé Lacapelle avatar
  6. Tyler Sticka avatar
  7. Kai Klostermann :popos: avatar

1 reply

  1. Pelle Wessman avatar Pelle Wessman
    @nhoizey My experience is that one should always manually perform SVG optimizations as different SVG:s optimize very differently and one can otherwise run into bugs like these or optimize too little or too much when it comes to eg precision
    • 13 December 2022, 13:50
    • Source
  • Older: Note from 12 December 2022
  • Newer: Note from 14 December 2022

Related contents with similar topics

  1. screenshot of JPEG XL vs AVIF for web use-cases

    Jake Archibald avatar Jake Archibald

    JPEG XL vs AVIF for web use-cases

    • Nicolas Hoizey
    • 22 October 2026
    • WebPerf, image, JPEG XL, AVIF
    • 5 reactions

    I'll go into full detail, with examples and benchmarks, but for those of you who don't have the time, here are [2 of] the headlines: For lossy photos…

  2. screenshot of The case against JPEG XL

    Gianni Rosato avatar Gianni Rosato

    The case against JPEG XL

    • Nicolas Hoizey
    • 14 September 2026
    • WebPerf, image, JPEG XL, AVIF
    • 7 reactions

    JPEG XL isn't useless; it is genuinely compelling technology for use cases beyond the Web. I'm just not personally convinced we need it in browsers…

  3. screenshot of The present and potential future of progressive image rendering

    Jake Archibald avatar Jake Archibald

    The present and potential future of progressive image rendering

    • Nicolas Hoizey
    • 16 October 2025
    • image, WebPerf
    • 4 reactions

    So if the browser manages to download 6 kB then stalls, then AVIF can produce a better result. But since the AVIF rendering is only two-pass, if the…

  4. screenshot of JPEG VS AVIF - The Battle of Compression

    kliksphilip

    JPEG VS AVIF - The Battle of Compression

    • Nicolas Hoizey
    • 25 September 2024
    • image, WebPerf, AVIF, JPEG XL
    • 2 reactions

    In this super thorough study I test one single HD image and come to vast sweeping conclusions about JPEG XL and AVIF. But that's still one image comparison…

  5. Note from 24 April 2024

    • Nicolas Hoizey
    • 24 April 2024
    • image, JPEG XL, Lighthouse, photography, WebPerf
    • 3 reactions

    Should I please Lighthouse with modern image formats, or my visitors with progressive rendering of large images in my photography site? 🤔

    screenshot of Lighthouse score in SpeedCurve, with a recommendation to use modern image formats

    Of course, this would be much easier with genaralized JPEG XL support, both modern and allowing progressive… 🤷‍♂️

If you want to share an error or suggest an enhancement of this content, please edit the source on GitHub.

© Nicolas Hoizey

Built with Eleventy