Jamie Edwards

  • Random
  • Archive
  • RSS
  • Ask me

Solving the Cufon delay render problem

Cufon uses JavaScript to transform plain looking text on a web page into a pretty font, even when that font is not installed on the visitor’s computer.

However, on JavaScript-heavy web pages, there is sometimes a delay between the text displaying and Cufon doing its thing. It is ugly.

Fortunately there is a very simple and effective fix.

While Cufon is in the process of rendering the text, the CSS class cufon-loading is applied (replaced with cufon-active once rendered). 

Just by defining the following CSS statement…

.cufon-loading { 
                visibility: hidden;
}

…the ugly render delay will appear to be no more.

For all intents and purposes, it works (even in Internet Explorer!).

    • #cufon
    • #web design
    • #css
  • 2 years ago
  • 10
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

10 Notes/ Hide

  1. newscrackfli likes this
  2. thelake likes this
  3. imageinnate likes this
  4. jmedwards posted this

Recent comments

Blog comments powered by Disqus
← Previous • Next →

About

Best served cold.

Me, Elsewhere

  • @jmedwards on Twitter
  • Facebook Profile
  • jmedwards on Last.fm
  • Linkedin Profile
  • jmedwards on github

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask me
  • Mobile
Effector Theme by Pixel Union