0

I have a site I'm building, here: http://ericbrockmanwebsites.com/dev2/

I'm using Cufón because the font the client wants doesn't look very good when the user is on a Microsoft system or on Chrome. SEO is not important as it's, for the most part, not really open to the public.

The problem is that the page loads with the default font and then the cufón script kicks in a second or so later - every time a new page is loaded. Just ended up looking very sloppy.

Does anyone how to remedy this?

Any help is greatly appreciated! cheers,

4

2 回答 2

0

在加载内容之前隐藏所有内容怎么样?IE...

在 CSS 中,隐藏正文

body { display:none; }

然后在 jQuery 中,当所有内容都加载完毕并且窗口准备就绪时

jQuery(window).ready(function() {
  jQuery('body').css({
    'display':'block'
  });
});

如果网站需要一点时间来加载,您可能需要考虑使用预加载器。

于 2013-07-29T17:27:53.270 回答
0

我发现这个答案效果很好,因为您使用的是 jQuery: Cufon delay in Internet Explorer

您基本上隐藏文本,直到它正确呈现。

于 2013-07-29T09:41:42.180 回答