This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
house | leader | seat | |
---|---|---|---|
Stark | Jon Snow | Winterfell | |
Lannister | Cersei Lannister | Kings Landing | |
Targaryen | Daenerys Targaryen | Dragonstone | |
Greyjoy | Pyke | Euron Greyjo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
house | leader | seat | |
---|---|---|---|
Stark | Jon Snow | Winterfell | |
c | Cersei Lannister | Kings Landing | |
Targaryen | Daenerys Targaryen | Dragonstone | |
Greyjoy | Pyke | Euron Greyjoy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="dns-prefetch" href="//example.com"> //prefetch dns of domain which will be soon needed. | |
<link rel="prefetch" href="//example.com/demo.html"> //prefecth whole page or assets which the user woould most probably move next. | |
<link rel="preload" href="//example.com/demo.html"> //preload whole page or assets which will be required in same page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@font-face { | |
font-family: 'Source Sans Pro'; | |
font-style: normal; | |
font-weight: 400; | |
font-display: swap; /* swap fonts onload */ | |
src: url("..."); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* That’s all, stop editing! Happy blogging. */ | |
define( 'WP_MEMORY_LIMIT', '256M' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add this below content to your HTML page, or add the js file to your page at the very top to register service worker | |
// Check compatibility for the browser we're running this in | |
if ("serviceWorker" in navigator) { | |
if (navigator.serviceWorker.controller) { | |
console.log("NutPanda: active service worker found, no need to register"); | |
} else { | |
// Register the service worker | |
navigator.serviceWorker | |
.register("sw.js", { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.addEventListener('install', function(event){ | |
event.waitUntil( | |
caches.open('NutPanda-cache-v10').then(function(cache){ | |
return cache.addAll([ // add the links to assests you want to cache | |
'https://demo.com/main.css', | |
'https://example.co/min.css', | |
]); | |
}) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Add this below content to your HTML page, or add the js file to your page at the very top to register service worker | |
if (navigator.serviceWorker.controller) { | |
console.log('active service worker found, no need to register') | |
} else { | |
//Register the ServiceWorker | |
navigator.serviceWorker.register('/service-worker.js', { | |
scope: './' | |
}).then(function(reg) { | |
console.log('Service worker has been registered for scope:'+ reg.scope); | |
}); |