Link rel preload boot data

This commit is contained in:
Ken-Håvard Lieng 2018-11-09 06:30:31 +01:00
parent 9b6844449d
commit 4b4b2394a9
9 changed files with 180 additions and 80 deletions

View file

@ -3,7 +3,7 @@
// This entrypoint gets inlined in the index page cached by service workers
// and is responsible for fetching the data we would otherwise embed
window.__env__ = fetch(`/data${window.location.pathname}`, {
window.__env__ = fetch('/data', {
credentials: 'same-origin'
}).then(res => {
if (res.ok) {