1

以下站点在来自 IE9 的大多数浏览器中运行良好。脚本加载大约需要一分钟?

http://www.charterhouse-aquatics.co.uk/revamp/

我完全糊涂了。任何帮助都会很棒。

亲切的问候。

4

2 回答 2

1

It is general bad idea (from performance perspective) to put javascript code/css at the bottom of the page, and your page load a lot of it there...

Here is the sample code and tips from Google Chrome Audits of your page:

    A width and height should be specified for all images in order to speed up page display. The following image(s) are missing a width and/or height:
    Logo.gif
    tp-logo.jpg
    image.php
    image.php
    image.php
    image.php
    image.php
    image.php
    image.php
    image.php
    image.php
    image.php
    image.php
    image.php
    image.php
    image.php
    image.php
    image.php
    image.php
    image.php
    cards.png
    Web Page Performance
    Optimize the order of styles and scripts (10)
    The following external CSS files were included after an external 
JavaScript file in the document head. To ensure CSS files are downloaded in parallel, 
always include external CSS before external JavaScript.
    css
    normalize.css
    main.css
    tipped.css
    style.css
    buttons.css
    jquery.tweet.css
    inav.css
    /revamp/../layerslider/css/layerslider.css
    /revamp/../layerslider/skins/noskin/skin.css
    Put CSS in the document head (1)
    CSS in the document body adversely impacts rendering performance.
    1 style block(s) in the /revamp/ body should be moved to the document head.

In other words, move all your javascript (.js) include files in the document head section and put before all of them the links to the stylesheet (.css) files. Also consider using minimized versions of the jquery/plugins/css files, if you cannot obtain such versions, you can use a web service to convert the files for you, check here, the YUI compressor.

于 2012-09-26T11:31:12.400 回答
1

查看 IE9 开发人员工具提供的网络信息,您有很多返回 404 的 PIE.htc 请求。我猜 IE 会尝试为每个使用的样式规则再次获取文件,behavior: url(PIE.htc);并且revamp/css/W.inav.css.pagespeed.cf.o5re9TDSo5.css您有 9 次出现(IE似乎也重试了几次获取文件)。

因此,要么将 PIE.htc 文件放在 css 文件夹中,要么在每个样式规则处更改为正确的 URL。

这似乎是我所看到的问题。如果您解决了这个问题并且问题仍然存在,我很乐意再看看这个问题。

于 2012-09-26T14:16:15.187 回答