Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/Icons/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Comment on lines +459 to +462
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The UX Icons component is a PHP one, that does generates HTML.

Do you think on twig documentation, you'd write "every time you include a partial, it is included" ?

:)


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
Expand Down