()
| 5 | |
| 6 | class ResourceHintsManager { |
| 7 | constructor() { |
| 8 | this.hints = { |
| 9 | preconnect: [ |
| 10 | 'https://api.giffgaff.com', |
| 11 | 'https://id.giffgaff.com', |
| 12 | 'https://publicapi.giffgaff.com', |
| 13 | 'https://appapi.simyo.nl' |
| 14 | ], |
| 15 | dnsPrefetch: [], |
| 16 | preload: { |
| 17 | fonts: [], |
| 18 | scripts: [ |
| 19 | { href: '/dist/js/main.js', as: 'script' }, |
| 20 | { href: '/dist/js/vendors.js', as: 'script' } |
| 21 | ], |
| 22 | styles: [ |
| 23 | { href: '/dist/css/design-system.css', as: 'style' } |
| 24 | ], |
| 25 | images: [] |
| 26 | }, |
| 27 | prefetch: { |
| 28 | routes: [ |
| 29 | '/giffgaff', |
| 30 | '/simyo' |
| 31 | ], |
| 32 | data: [] |
| 33 | } |
| 34 | }; |
| 35 | } |
| 36 | |
| 37 | /** |
| 38 | * Initialize all resource hints |
nothing calls this directly
no outgoing calls
no test coverage detected