Hacker News new | ask | show | jobs
by anatoli 6302 days ago
I hope you're aware of sIFR speed issues when you're replacing multiple different instances of text. It dramatically slows down the browser. (And when dealing with PDFs, I wouldn't be surprised if on average you had to use 20+ sIFR flash objects.)
1 comments

What do you mean, different instances of text? Do you mean different types of text that get rendered differently? Or does this apply also when you work with a large block of text that's all rendered a single way?
Basically, each block tag (h1, h2, h3, p, li, etc.) would create a new instance of sIFR, thus creating a new flash object on the page. For example, you can't use just one flash object for a long stream of text, if that stream of text is divided into paragraphs, because sIFR cannot internally give you the necessary margins or tabbing required for marking paragraphs.

The only case where you would have one flash object is when you have a single column of text which has the same font, same leading, and no margins throughout. Unfortunately, that won't happen very often.