Skip to content
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

XWIKI-22540: Slow loading time when changing the icons theme to Silk in the Icon picker #3537

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Sereza7
Copy link
Contributor

@Sereza7 Sereza7 commented Oct 4, 2024

Jira URL

https://jira.xwiki.org/browse/XWIKI-22540

Changes

Description

  • Added a flag on the data_icons action to only retrieve metadata when necessary. This shaves off half of the time for the request and reduces significantly the size of the payload
  • Updated slightly the IconPicker javascript to improve readability

Clarifications

  • This PR is not enough to close the ticket, this represents a 50% reduction in the waiting time but it's still too high. Closing it will happen only when we can figure out a way to speed up loading icons, with https://jira.xwiki.org/browse/XWIKI-11112 for example.

Screenshots & Video

N/A, performance issue only

Executed Tests

Manual tests, time to display was reduced by half. Locally, the request before the changes would take about 5 seconds. This was most of the waiting time. After the PR, this request was only half as long (2 to 2.5s).

Expected merging strategy

…in the Icon picker

* Added a flag on the data_icons action to only retrieve metadata when necessary. This shaves off half of the time for the request and reduces significantly the size of the payload
…in the Icon picker

* Refactored the IconPicker javascript to improve readability
…in the Icon picker

* Removed unwanted changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants