Link rel preload boot data
This commit is contained in:
parent
9b6844449d
commit
4b4b2394a9
9 changed files with 180 additions and 80 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue