(light: string, dark: string)
| 431 | }; |
| 432 | |
| 433 | function preloadImage(light: string, dark: string) { |
| 434 | preload(light, { |
| 435 | as: 'image', |
| 436 | media: '(prefers-color-scheme: light)' |
| 437 | }); |
| 438 | |
| 439 | preload(dark, { |
| 440 | as: 'image', |
| 441 | media: '(prefers-color-scheme: dark)' |
| 442 | }); |
| 443 | } |
| 444 | |
| 445 | export function preloadComponentImages(names: string[]) { |
| 446 | for (let key of names) { |
no outgoing calls
no test coverage detected