本文介绍了减少sifr渲染时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在这个页面上使用了sifr几个项目:
不幸的是,渲染看起来很慢,有没有人有任何想法如何:
a)加速渲染过程
b)隐藏所有被sifr'd项目,直到所有的人准备好了吗?
解决方案
以下是几点建议:
sifr-config
文件中的所有JavaScript注释。
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 processb) 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渲染时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!