Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
6.2
-
Easy
-
Description
Currently, in the icon theme implementation, we cache the mapping between icon names and values, in order to not load the Icon Theme document every time.
icon-name : name-of-the-corresponding-icon-in-the-icon-theme
Then, we use DefaultIconRenderer that executes the Velocity interpretor to compute the output code that display the icon. And we use this for every icon we render in a page.
name-of-the-corresponding-icon-in-the-icon-theme -> <span class="fa fa-name-of-the-corresponding-icon-in-the-icon-theme"></span>
This last step can take time (how much? should we do a benchmark?), so I propose to have a cache component for the rendering code corresponding to the icon.
Attachments
Issue Links
- blocks
-
XWIKI-22540 Slow loading time when changing the icons theme to Silk in the Icon picker
- Open