Skip to content

Conversation

@AjaiKN
Copy link
Member

@AjaiKN AjaiKN commented Apr 26, 2021

AjaiKN added 4 commits April 26, 2021 17:19
Use double arrows for two-way edges, single arrows for one-way.
Color single arrows red and double arrows green.

workbox.precaching.precacheAndRoute(
precacheManifest.filter(
(p) => !p.url.includes("graphpage") && !p.url.includes("legacy")
Copy link
Member Author

@AjaiKN AjaiKN May 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is so that the service worker doesn't ask the browser to precache the resources for the graph page, since most people will never go to that page.

@AjaiKN
Copy link
Member Author

AjaiKN commented May 25, 2021

Although the service worker isn't precaching the graph page, Vue CLI is still adding prefetch headers that we need to remove, which ask the browser to prefetch those resources in the future. This is bad because most people will never go to the graph page.

<link href="/css/graphpage.f6b6efdf.css" rel="prefetch">
<link href="/js/graphpage.8a39efaa.js" rel="prefetch">

This should be fixed before merging. (If we decide to merge it at all; this obviously isn't a very important change, it's just a visualization to help people understand how Walnut.Direct works.)

@AjaiKN AjaiKN marked this pull request as draft August 16, 2021 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants