preload app css (#8752)
This commit is contained in:
@@ -1,17 +1,23 @@
|
||||
block vars
|
||||
|
||||
block loadClientEntry
|
||||
- const clientEntry = getClientEntry();
|
||||
|
||||
doctype html
|
||||
|
||||
!= '<!--\n'
|
||||
!= ' _____ _ _ \n'
|
||||
!= ' | |_|___ ___| |_ ___ _ _ \n'
|
||||
!= ' | | | | |_ -|_ -| \'_| -_| | |\n'
|
||||
!= ' |_|_|_|_|___|___|_,_|___|_ |\n'
|
||||
!= ' |___|\n'
|
||||
!= ' Thank you for using Misskey!\n'
|
||||
!= ' If you are reading this message... how about joining the development?\n'
|
||||
!= ' https://github.com/misskey-dev/misskey'
|
||||
!= '\n-->\n'
|
||||
//
|
||||
-
|
||||
|
||||
_____ _ _
|
||||
| |_|___ ___| |_ ___ _ _
|
||||
| | | | |_ -|_ -| \'_| -_| | |
|
||||
|_|_|_|_|___|___|_,_|___|_ |
|
||||
|___|
|
||||
Thank you for using Misskey!
|
||||
If you are reading this message... how about joining the development?
|
||||
https://github.com/misskey-dev/misskey
|
||||
|
||||
|
||||
|
||||
html
|
||||
|
||||
@@ -30,9 +36,11 @@ html
|
||||
link(rel='prefetch' href='https://xn--931a.moe/assets/info.jpg')
|
||||
link(rel='prefetch' href='https://xn--931a.moe/assets/not-found.jpg')
|
||||
link(rel='prefetch' href='https://xn--931a.moe/assets/error.jpg')
|
||||
link(rel='preload' href='/assets/fontawesome/css/all.css' as='style')
|
||||
link(rel='stylesheet' href='/assets/fontawesome/css/all.css')
|
||||
|
||||
each href in clientEntry.css
|
||||
link(rel='preload' href=`/assets/${href}` as='style')
|
||||
|
||||
title
|
||||
block title
|
||||
= title || 'Misskey'
|
||||
@@ -52,7 +60,7 @@ html
|
||||
|
||||
script.
|
||||
var VERSION = "#{version}";
|
||||
var CLIENT_ENTRY = "#{clientEntry()}";
|
||||
var CLIENT_ENTRY = "#{clientEntry.file}";
|
||||
|
||||
script
|
||||
include ../boot.js
|
||||
|
Reference in New Issue
Block a user