From 7df7065ab33da35109d089f23c506d64f41e9448 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sat, 18 Jul 2020 19:05:06 +0200 Subject: pkgs/profpatsch.de: add preloading directives MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Those tell the browser that it’s going to need them later, even it hasn’t found them yet (e.g. the fonts can only be found after loading the CSS). --- pkgs/profpatsch/profpatsch.de/default.nix | 5 +++++ pkgs/profpatsch/profpatsch.de/index.html.nix | 12 +++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'pkgs/profpatsch/profpatsch.de') diff --git a/pkgs/profpatsch/profpatsch.de/default.nix b/pkgs/profpatsch/profpatsch.de/default.nix index 51489393..3f042e77 100644 --- a/pkgs/profpatsch/profpatsch.de/default.nix +++ b/pkgs/profpatsch/profpatsch.de/default.nix @@ -82,6 +82,11 @@ let inherit jsJquery; inherit cssNormalize cssMain; inherit cv_pdf id_txt; + # preloading + inherit + fontsQuattrocentoLatin + fontsOpenSansLatin + ; }; }; toc = { diff --git a/pkgs/profpatsch/profpatsch.de/index.html.nix b/pkgs/profpatsch/profpatsch.de/index.html.nix index 141570ad..607d5d0c 100644 --- a/pkgs/profpatsch/profpatsch.de/index.html.nix +++ b/pkgs/profpatsch/profpatsch.de/index.html.nix @@ -1,6 +1,8 @@ { jsJquery , cssNormalize, cssMain -, id_txt, cv_pdf }: +, id_txt, cv_pdf +, fontsQuattrocentoLatin, fontsOpenSansLatin +}: '' @@ -11,9 +13,17 @@ + + + + + + + + -- cgit 1.4.1