From 8af7275b5b056728c619fed3ec3d81d6aa079b72 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Wed, 28 May 2025 22:12:32 +0200 Subject: [PATCH] [Icons] Docs: Adding info on enduser performance Page: https://symfony.com/bundles/ux-icons/current/index.html#performance Info is taken from https://github.com/symfony/ux/issues/2782#issuecomment-2917339106 --- src/Icons/doc/index.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Icons/doc/index.rst b/src/Icons/doc/index.rst index 607e0160354..d43629f9ab0 100644 --- a/src/Icons/doc/index.rst +++ b/src/Icons/doc/index.rst @@ -456,7 +456,12 @@ of the following attributes: ``aria-label``, ``aria-labelledby`` or ``title``. Performance ----------- -The UX Icons component is designed to be fast. The following are some of +When including the same icon multiple times on one page, the same string (SVG content) +is inserted repeatedly in the HTML source. However, since most icons are small (just a few +hundred bytes), this overhead is negligible in most cases (especiall wthen proper +transfer encoding like e.g. gzip is enabled). + +On the server side, the UX Icons component is designed to be fast. The following are some of the optimizations made to ensure the best performance possible. Caching