减少sifr渲染时间 [英] decreasing sifr render time

查看:203
本文介绍了减少sifr渲染时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这个页面上使用了sifr几个项目: http://blueprint.staging.dante-studios.com/public/templates/home.php

不幸的是,渲染看起来很慢,有没有人有任何想法如何:

a)加速渲染过程
b)隐藏所有被sifr'd项目,直到所有的人准备好了吗?

解决方案

以下是几点建议:


  • Flash电影中嵌入了粗体斜体和粗体+斜体字形。如果你不需要这些,他们会给电影增加不必要的重量。您可以删除 sifr-config 文件中的所有JavaScript注释。

  • 建议不要使用Flash透明度,因为渲染比较重。

  • 要改善初始显示效果,请查看 ratios

  • 尝试在jQuery之前加载sIFR代码


I'm using sifr for a few items on this page: http://blueprint.staging.dante-studios.com/public/templates/home.php

unfortunately it seems that the rendering is very slow, does anyone have any idea of how to:

a) speed up the rendering process b) hide all "to be sifr'd" items until all of them are ready?

解决方案

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

这篇关于减少sifr渲染时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆