From d18b9fc8e58da26fe1d30b81f7b3549d9595e8cc Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sun, 4 Jun 2017 23:40:18 +0200 Subject: [PATCH] common: inline light stylesheet on page Move import rules to html source to avoid deferral until initial css load. Keep light file as copy (link) of base to avoid renames for now. --- common.inc.plp | 4 ++++ light.css | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) mode change 100644 => 120000 light.css diff --git a/common.inc.plp b/common.inc.plp index 3a51600..cd0626a 100644 --- a/common.inc.plp +++ b/common.inc.plp @@ -117,6 +117,10 @@ sub Html { unless $PLP::sentheaders; unshift @{ $meta->{raw} }, stylesheet($meta->{stylesheet}); + push @{ $meta->{raw} }, ( + '', + ); + # optional amends push @{ $meta->{raw} }, ( '', diff --git a/light.css b/light.css deleted file mode 100644 index d7604d4..0000000 --- a/light.css +++ /dev/null @@ -1,2 +0,0 @@ -@import url(base.css); -@import url(mono.css) all and (monochrome); diff --git a/light.css b/light.css new file mode 120000 index 0000000..e734484 --- /dev/null +++ b/light.css @@ -0,0 +1 @@ +base.css \ No newline at end of file -- 2.30.0