Added a few priority hints

This commit is contained in:
2018-12-08 15:18:31 +09:00
parent 866815516c
commit 062503d937
2 changed files with 6 additions and 3 deletions

View File

@ -1,7 +1,7 @@
component Layout(app *aero.Application, ctx *aero.Context, user *arn.User, openGraph *arn.OpenGraph, meta, tags []string, organization string, content string)
html(lang="en")
head
link(rel="stylesheet", href="/styles")
link(rel="stylesheet", href="/styles", importance="high")
if openGraph != nil
title= openGraph.Tags["og:title"]
@ -30,6 +30,9 @@ component Layout(app *aero.Application, ctx *aero.Context, user *arn.User, openG
link(rel="chrome-webstore-item", href="https://chrome.google.com/webstore/detail/hajchfikckiofgilinkpifobdbiajfch")
link(rel="manifest", href="/manifest.json")
//- Preconnect to CDN
link(rel="preconnect", href="//media.notify.moe", crossorigin)
//- Icons
link(rel="icon", type="image/webp", sizes="64x64", href="//media.notify.moe/images/brand/64.webp")
link(rel="icon", type="image/webp", sizes="128x128", href="//media.notify.moe/images/brand/128.webp")
@ -58,7 +61,7 @@ component Layout(app *aero.Application, ctx *aero.Context, user *arn.User, openG
if user != nil
#user(data-id=user.ID, data-pro=user.IsPro(), data-theme=user.Settings().Theme)
script(src="/scripts")
script(src="/scripts", importance="high")
script(type="application/ld+json")!= organization
component Content(content string)