(light: string, dark: string)
| 376 | }; |
| 377 | |
| 378 | function preloadImage(light: string, dark: string) { |
| 379 | preload(light, { |
| 380 | as: 'image', |
| 381 | media: '(prefers-color-scheme: light)' |
| 382 | }); |
| 383 | |
| 384 | preload(dark, { |
| 385 | as: 'image', |
| 386 | media: '(prefers-color-scheme: dark)' |
| 387 | }); |
| 388 | } |
| 389 | |
| 390 | export function preloadComponentImages(names: string[]) { |
| 391 | for (let key of names) { |
no outgoing calls
no test coverage detected