Store icons fetched by the Icon API in localStorage
- All promises created by $.ajax get stored during runtime, causing a growing memory footprint
- Reloading the browser removes any held promise
- To have this "cache" in place, object sharing must be done
This issue can be solved by storing the icons in the local storage of the client.
[FEATURE] Store icons in localStorage
stored in the client's localStorage.
To have a proper invalidation, a hash of the IconRegistry is built and
stored in the localStorage, too. If the hash changes, all icons in the
localStorage get flushed.
To achieve this, the Storage/Client module is extended to allow removing
values by a given prefix.
Reviewed-by: Mathias Schreiber <email@example.com>
Tested-by: Mathias Schreiber <firstname.lastname@example.org>
Tested-by: TYPO3com <email@example.com>
Reviewed-by: Kay Strobach <firstname.lastname@example.org>
Tested-by: Kay Strobach <email@example.com>
Reviewed-by: Frank Naegler <firstname.lastname@example.org>
Tested-by: Frank Naegler <email@example.com>