mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 02:21:55 -04:00
ereader browser: Preload the League Spartan font
When the font doesn't blink in a moment after the rest of the page, the page looks faster.
This commit is contained in:
parent
75066dd862
commit
1685a7b8ea
1 changed files with 1 additions and 0 deletions
|
@ -36,6 +36,7 @@ if(!$isXslt){
|
|||
<link rel="preload" as="font" href="/fonts/fork-awesome-subset.woff2" type="font/woff2" crossorigin="anonymous"/>
|
||||
<link rel="preload" as="font" href="/fonts/crimson-pro-italic.woff2" type="font/woff2" crossorigin="anonymous"/> <? /* Don't preload bold/bold-italic as those are used far less frequently */ ?>
|
||||
<? if(Template::IsEreaderBrowser()){ ?>
|
||||
<link rel="preload" as="font" href="/fonts/league-spartan-bold.ttf" type="font/ttf" crossorigin="anonymous"/>
|
||||
<link href="/css/ereader.css?version=<?= filemtime(WEB_ROOT . '/css/ereader.css') ?>" media="screen" rel="stylesheet" type="text/css"/>
|
||||
<? } else { ?>
|
||||
<link href="/css/core.css?version=<?= filemtime(WEB_ROOT . '/css/core.css') ?>" media="screen" rel="stylesheet" type="text/css"/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue