views:

372

answers:

2

I'm using the Cufon font replacement tool on iPhone. Unfortunately, it's really slow there. (On a small 50 word page it takes about 2 seconds on my first-gen iPhone.)

Are there any optimizations I can make to improve performance? (If you have multiple tips, please split them out into multiple answers so they can be voted up separately.)

A: 

Turns out that there IS something I can do to make it a lot faster: avoid forcing Cufon to iterate over non-text nodes. By passing explicit divs to replace, Cufon performance considerably improved; it's now well under a second.

Dan Fabulich
A: 

Can you please elaborate on that .. or what exactly you did? I intend to use cufon and performance is a major concern. Thanks.

nadshez