WebPagetest Forums
Is there a way to optimize web font (.woff) download? - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Discuss Test Results (/forumdisplay.php?fid=4)
+--- Thread: Is there a way to optimize web font (.woff) download? (/showthread.php?tid=14109)



Is there a way to optimize web font (.woff) download? - Mushu - 12-11-2015 05:13 AM

http://agr.wa.gov/

Test results

1. Is there a way to compress or optimize a web font file (.woff)? It takes the longest to download by far of all assets.


RE: Is there a way to optimize web font (.woff) download? - dfavor - 12-13-2015 01:24 AM

https://en.wikipedia.org/wiki/Web_Open_Font_Format talks about .woff format, which is already highly compressed via zlib.


RE: Is there a way to optimize web font (.woff) download? - Anton Chigurh - 12-13-2015 04:43 AM

It's 47kb - but take note it gets cached so your visitors only get that download that one time. You have it hosted locally and you get a A grade for browser caching. You are loading in just over 2 seconds, you really got no problems. Only 22kb isn't getting cached out of all of it.

You've done a excellent job of optimizing this.


RE: Is there a way to optimize web font (.woff) download? - Mushu - 12-15-2015 08:24 AM

Thanks for the responses, I appreciate it. Even though we're a medium-sized state agency, I try hard to "do it right".

Next on the agenda is a redo to a responsive website that is actually accessible and not just hacked together...job security. :-)


RE: Is there a way to optimize web font (.woff) download? - pmeenan - 12-18-2015 01:36 AM

For browsers that support it, woff2 gets 30-40% better compression than woff. You can have the browsers that support it pick woff2 automatically: https://gist.github.com/sergejmueller/cf6b4f2133bcb3e2f64a


RE: Is there a way to optimize web font (.woff) download? - chapelier - 12-18-2015 05:26 AM

Why not try reducing the file size ?

Most people don't use it all so it can be reduced a fair bit.
Thats what i did here http://www.chambresdhotes.org/
i got it down to 7.5kb but could probably have gone further
test result
http://www.webpagetest.org/result/151203_S1_13H4/


RE: Is there a way to optimize web font (.woff) download? - Funkerman88 - 12-30-2015 11:42 PM

Just been looking randomly and saw this post


chapelier

test result
http://www.webpagetest.org/result/151203_S1_13H4/

I had a look at your results

I saw some moments to improve http://prntscr.com/9k9fl3

1 why dont you get static content from www.[you site] ?
2 Add DNS prefetch for goodle domain in head of HTML


RE: Is there a way to optimize web font (.woff) download? - Anton Chigurh - 01-03-2016 11:48 AM

(12-18-2015 05:26 AM)chapelier Wrote:  Why not try reducing the file size ?

Most people don't use it all so it can be reduced a fair bit.
Thats what i did here http://www.chambresdhotes.org/
i got it down to 7.5kb but could probably have gone further
test result
http://www.webpagetest.org/result/151203_S1_13H4/
Nicely done!