sIFR 在页面其余部分之前加载?
是否可以在页面内容的其余部分之前“预加载”或加载 sIFR? 目前,它是最后加载的内容(由于文本位置),并且由于它是页面中相当明显的部分,因此我很快就得到了文本替换的巨大混搭,这不是很吸引人。
看起来这个网站正在癫痫发作。 一旦加载,一切都很好:)
加载配件有什么解决方法吗?
干杯 休
Is it possible to have sIFR "preload" or load before the rest of the page content? At present it is the last thing to load (due to the text position) and as it's quite an obvious part of the page I get a huge mash-up of text replacement all in a quick flurry which is not very appealing.
It looks like the site is having an epileptic fit. Once loaded, all is fine though :)
Any work-arounds to the load-fitting?
Cheers
Hugh
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这里有两个单独的问题:
对于#1,sIFR 默认情况下会替换文档加载时的元素。 不过,要在 Safari 中实现此功能,请查看 http://wiki.novemberborn.net/sifr3/DetectingCSSLoad 。
对于#2,根据 Flash 中使用的字体,问题在于文本的尺寸与 HTML 文本不同。 查看http://wiki.novemberborn.net/sifr3/Ratio+Calculation帮助减少垂直跳跃。 您可能需要调整 HTML 文本的
字母间距
以减少水平跳跃。There are a two separate issues here:
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.如果我理解 sIFR 的工作方式,那么您需要在尝试更改标题之前在 DOM 中创建标题。 老实说,我访问过的每个使用 sIFR 的网站在加载时都有轻微的翻转。
我认为答案是否定的。 但我仍处于纠正之中。
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.