Skip to content

Commit

Permalink
Merge pull request #341 from jonathanhefner/search-preload-js-modules
Browse files Browse the repository at this point in the history
Preload search JavaScript modules
  • Loading branch information
jonathanhefner authored Oct 21, 2023
2 parents 71fc833 + cd99ec4 commit 5546703
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/rdoc/generator/template/rails/_head.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
<link rel="preload" href="/fonts/Jost-Italic.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/fonts/RobotoMono-Roman.woff2" as="font" type="font/woff2" crossorigin>

<link rel="modulepreload" href="/js/search-index.js">
<link rel="modulepreload" href="/js/search.js">

<link rel="stylesheet" href="/css/main.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/css/highlight.css" type="text/css" media="screen" />

Expand Down

0 comments on commit 5546703

Please sign in to comment.