(cacheKey: string)
| 65 | }; |
| 66 | |
| 67 | const notify = (cacheKey: string) => { |
| 68 | for (const callback of subscribers.get(cacheKey) ?? []) { |
| 69 | callback(); |
| 70 | } |
| 71 | }; |
| 72 | |
| 73 | const triggerFontLoad = (cacheKey: string, fontFaces: FontFace[]) => { |
| 74 | if (fontStatusCache.has(cacheKey)) { |