MCPcopy Create free account
hub / github.com/Silentely/eSIM-Tools / constructor

Method constructor

src/js/modules/resource-hints.js:7–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6class 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected