如何减少渲染时 cufon 闪烁?
我正在开发一个使用 Cufon 字体替换的项目,当内容在浏览器中呈现时,我们遇到了一个相当令人沮丧的闪烁问题。您可以在此处的网站浏览器中查看它。
这种影响在 Internet Explorer 中最差,但在所有其他浏览器中也很明显,任何减少这种情况的方法将不胜感激。
提前致谢。
I'm working on a project using Cufon font replacement, and we're having a rather frustrating issue with a flicker when the content is rendered in the browse. You can see it as your browser around the site here.
The effect is worst in internet explorer but also noticeable in all other browsers, any way to reduce this will be greatly appreciated.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
似乎闪烁是受到页面上加载的内容量及其加载速度的影响。服务器的响应时间越快,加载的项目越少,闪烁时间就越短。
It seems that flicker is effected by the amount of content loading on the page and the speed they all come in. The quicker response time from the server and the less items loaded will lower the flicker time.
您可以在 cufon 加载时隐藏文本,然后在文本激活后显示该文本。
参见 https://github.com/sorccu /cufon/wiki/styling#jump-special-cases
You can hide the text while cufon loads, then display the text once it's active.
See https://github.com/sorccu/cufon/wiki/styling#jump-special-cases