Skip to content

Commit

Permalink
feat: faster preloading & prefetching
Browse files Browse the repository at this point in the history
  • Loading branch information
okikio authored Sep 17, 2021
1 parent 690994e commit 3882c11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/assets/_headers
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@

/
Link: </js/codicon.ttf>; rel=preload; as=font; type=font/ttf; crossorigin
Link: </js/monaco.min.css>; rel=preload; as=style
Link: </js/index.min.css>; rel=preload; as=style
Link: </js/load-webanimation-polyfill.min.js>; rel=modulepreload
Link: <https://cdn.skypack.dev>; rel=preconnect; crossorigin
Link: </js/index.min.js>; rel=modulepreload
Link: </js/editor.worker.js>; rel=prefetch
Expand Down
2 changes: 1 addition & 1 deletion src/pug/index.pug
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extends /layouts/layout.pug

block preload
link(rel="stylesheet", href="./js/monaco.min.css")
link(rel="stylesheet", href="./js/index.min.css")

block content
input(type="text" id="copy-input" tabindex="-1" aria-hidden="true")
Expand Down

0 comments on commit 3882c11

Please sign in to comment.