简体   繁体   English

页面加载非常慢 - ASP/PHP CSS 文件延迟

[英]Very Slow Page Load - ASP/PHP CSS file latency

I've searched for this, but can't find anything - maybe I'm describing it badly??我已经搜索过这个,但找不到任何东西 - 也许我描述得很糟糕?

Anyway - I have a website (on an IIS 6 server) whose pages loads 2 or 3 CSS files, these css files are actually ASP files with the response headers set accordingly.无论如何 - 我有一个网站(在 IIS 6 服务器上),其页面加载 2 或 3 个 CSS 文件,这些 css 文件实际上是相应设置了响应头的 ASP 文件。

The ASP in the files simply reads the query string to set colours of various css rules based on user preferences.文件中的 ASP 只需读取查询字符串,即可根据用户偏好设置各种 css 规则的颜色。

I've noticed that sometimes pages are loading very slowly, and using the dev tools in Chrome (although this seems to apply in all browsers) I could see the page load is stalling on these CSS files, the reported latency can be up to 2 minutes - everything else only takes a few milliseconds.我注意到有时页面加载非常缓慢,并且使用 Chrome 中的开发工具(尽管这似乎适用于所有浏览器)我可以看到页面加载在这些 CSS 文件上停止,报告的延迟可能高达 2分钟 - 其他一切只需要几毫秒。

I've tried using PHP files instead of ASP files, but this makes no difference!我试过使用 PHP 文件而不是 ASP 文件,但这没有区别!

The website is behind password so I can't really demo it easily - although could try and set something up if it would help - Although it isn't consistent, it seem to happen most of the time, but sometimes can be quite fast!该网站在密码后面,所以我无法真正轻松地演示它 - 虽然可以尝试设置一些东西,如果它有帮助 - 虽然它不一致,但似乎大部分时间都会发生,但有时可能会非常快!

Any ideas what I could try?有什么想法我可以尝试吗?

Thanks谢谢

A couple of things you can try are using Google's page speed or Yahoo's YSlow - both will generate suggestions for you to help improve performance.您可以尝试使用Google 的页面速度或 Yahoo 的YSlow - 两者都会为您生成建议以帮助提高性能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM