diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-11-14 17:53:31 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-11-14 17:53:31 +0100 |
commit | b9d5983b17adbd238fdb8a41d926dacf53730675 (patch) | |
tree | 994df12beb4a91d9255aea656050ddc9afda0688 /views | |
parent | bf9b4ddafe5d11e510760f6af4479e29da6987ba (diff) | |
download | server-b9d5983b17adbd238fdb8a41d926dacf53730675.tar.gz |
Inline style sheet in EJS template to prevent FOUC.
Diffstat (limited to 'views')
-rw-r--r-- | views/header.ejs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/views/header.ejs b/views/header.ejs index 337290a..c8337fc 100644 --- a/views/header.ejs +++ b/views/header.ejs @@ -4,9 +4,11 @@ <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1"> <% if (typeof refresh !== 'undefined' && refresh > 0) { %><meta http-equiv="refresh" content="<%= refresh %>"><% } %> <link rel="icon" href="/favicon.svg"> -<link rel="stylesheet" href="/fonts/fonts.css"> -<link rel="stylesheet" href="/style.css"> <title><%= title %></title> +<style> +<%- include('../public/fonts/fonts.css') _%> +<%- include('../public/style.css') _%> +</style> </head> <body> <div class="header"> |