Speeding Up Cufon Loading Time

26 Jul

A client wanted to improve the loading time for the cufon fonts on her website. Each time her page loaded, there was a few seconds where the original fonts would appear just before the cufon styles would load. Being that most of her site was full of cufon fonts, this small flicker was very jarring.

Select Code
1
2
3
<script type="text/javascript">// <![CDATA[
if ( navigator.appName != 'Opera' ) {document.documentElement.className = 'cufon-loading';}
// ]]></script>

Tags: , ,

No comments yet.

Leave a Reply

− 4 = 1