Skip to content

Commit e6e4c3c

Browse files
authored
fix(icon): prevent parsing the same icon set multiple times (#9635)
This fixes an issue where requests for icons in a particular set made while that set is being fetched result in the set being parsed into an SVGElement multiple times. It occured because, while the same pending http request was used for each icon, each icon added their own `map` onto that request, will every `map` resulting in a (potentially expensive) parse. This change sets the cached icon earlier and checks it later.
1 parent 3352201 commit e6e4c3c

File tree

3 files changed

+1139
-209
lines changed

3 files changed

+1139
-209
lines changed

0 commit comments

Comments
 (0)