decreasing sifr render time

孤人 提交于 2019-12-04 20:46:26

Here are a few suggestions:

  • The Flash movie has the bold and italic and bold + italic glyphs embedded. If you don't need those, they're adding needless weight to the movie. Same goes for other characters.
  • You could get rid of all JavaScript comments in the sifr-config file.
  • Flash transparency is not advised as it's a bit heavier to render.
  • To improve the initial display, look into ratios
  • Try loading the sIFR code before jQuery

Yes.. I’ve used sIFR in many times and help me so much.. Visitors said rendering is very slow too. I has one solution which change to Cufon.

Cufon is more exciting because, it doesn’t use any browser plugins. Cufon, on the other hand just needs JavaScript to be enabled. Just a suggestion ;)

Cufon Demo

There is a performance penalty associated with SIFR. Unfortunately the speed is partially dependent on the speed of the client computer. The only way to improve times is to reduce the use of SIFR, or remove it altogether and use images to ensure fonts render the way you want them to.

Also, make sure that your font files only include the letters you are using, to reduce download time.

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