在页面其余部分之前加载sIFR吗? [英] sIFR load before rest of page?

查看:82
本文介绍了在页面其余部分之前加载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?

欢呼休

推荐答案

这里有两个独立的问题:

There are a two separate issues here:

  1. 尽快替换元素
  2. 使替换尽可能轻松

对于#1,默认情况下,sIFR会替换文档加载时的元素.但是,要使其在Safari中起作用,请查看 http://wiki.novemberborn.net/sifr3/DetectingCSSLoad.

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.

对于#2,问题取决于Flash中使用的字体,是文本的尺寸与HTML文本不同.查看 http://wiki.novemberborn.net/sifr3/Ratio+Calculation 到帮助减轻垂直跳动.您可能需要调整HTML文本的 letter-spacing ,以减少水平跳动.

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吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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