Async JavaScript load

This commit is contained in:
2018-04-24 13:29:46 +02:00
parent c7f482c525
commit e63be2c43a
4 changed files with 26 additions and 10 deletions

@ -54,7 +54,7 @@ component Layout(app *aero.Application, ctx *aero.Context, user *arn.User, openG
ExtensionNavigation(user)
if user != nil
#user(data-id=user.ID, data-pro=user.IsPro(), data-theme=user.Settings().Theme)
script(src="/scripts")
script(src="/scripts", async="async")
script(type="application/ld+json")!= organization
component Content(content string)