kelyvin / ghost-caffeine-theme

A minimalist, Material Design inspired Ghost Theme for optimal desktop and mobile experiences
https://caffeinecoding.com
MIT License
333 stars 97 forks source link

Optimise font loading direct embed #6

Closed andrewlock closed 8 years ago

andrewlock commented 8 years ago

Added the @font-face css calls directly in the page to avoid an extra round trip to google.

Currently limited to woff, woff2, truetype, and svg as eof only required in early IE which is not supported

Probably very limited international character support so may need to update the ReadMe to indicate that, but I haven't looked in to that side of it.

If available, uses session storage to completely eliminate FOUT on subsequent hits

kelyvin commented 8 years ago

Thanks for the font enhancements! Worked well for me so I merged it in.