Skip to content

[Icons] Docs: Adding info on enduser performance #2787

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
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