sIFR load before rest of page?

浪子不回头ぞ 提交于 2019-12-08 05:40:27

There are a two separate issues here:

  1. Replacing the elements as soon as possible
  2. Making the replacement as painless as possible

For #1, sIFR by default replaces the elements on document load. However, to make this work in Safari, check out http://wiki.novemberborn.net/sifr3/DetectingCSSLoad.

For #2, the problem, depending on the font used in Flash, is that the dimensions of the text are different from the HTML text. Check out http://wiki.novemberborn.net/sifr3/Ratio+Calculation to help lessen vertical jumpiness. You may need to tune the letter-spacing of the HTML text to lessen horizontal jumpiness.

If I understand the way sIFR works, you need to have created the heading in the DOM before attempting to change it. To be honest, every site I've been to that uses sIFR has that slight flip on loading.

The answer then in my opinion, is no. I stand under correction though.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!