HomeWrite.as

preload fonts.css in base.tmpl
91285458c2aeUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

preload fonts.css in base.tmpl

Hi, this is an "explorational" pull request.
PageSpeed Insights tells me I could gain about 500ms on my blog, if I preloaded fonts.css.
Would you be open to preloading fonts like this?
From a read of the templates and the generated HTML, it seems you always end up at the resource at {{.Host}}/css/fonts.css. The JS bit in the bottom just controls when to enable it. Preloading with a <link> element shouldn't change that behavior.

Let me know if that looks acceptable, I'm happy to throw additional commits in this pull request branch for the other template files.

Details

Provenance
Frederik B <freddyb@users.noreply.github.com>Authored on Jun 10 2020, 11:20 AM
GitHub <noreply@github.com>Committed on Jun 10 2020, 11:20 AM
Parents
rWF99d86a748945: Merge pull request #303 from writeas/fix-oauth-account-creation
Branches
Unknown
Tags
Unknown
References
refs/pull/321/head

Event Timeline