问题描述
我正在asp.net网站上工作.网站上有很多JavaScript插件,包括书签按钮(addthis),Google adsense,Admanager标签,社交书签按钮等等.
I am working on a asp.net website. There are a lot of javascript plug-ins that site uses including the bookmark button(addthis), Google adsense, Admanager tags, Social Bookmarking buttons and so on.
页面加载速度很慢,即使我一直使用FireBug之类的工具,也无法弄清为什么页面加载速度如此之慢.
The page loads slow and even though I have been using tools like FireBug, I haven't been able to make out why does my page load so slow.
有没有一种方法可以找出导致页面加载缓慢的JavaScript?还是找出罪魁祸首并取出来?
Is there a way to find out which javascript is causing the page to load slow? Or find out the culprit and take it out?
请对我好一点,因为我刚开始使用这些东西.
Please be kind to me as I am just getting started with this stuff.
推荐答案
使用Firebug的网络"标签应向您显示哪些请求的加载时间最长.请参阅本页以获取使用此信息的更详细指南.
Using the Net tab of Firebug should show you which requests are taking the longest to load. See this page for a more detailed guide to using this information.
您还可以使用Firebug的 YSlow 插件来确定其他可以改善加载时间的方式页面上的内容.
You could also use the YSlow addon for Firebug to identify other ways you could improve the loading time of your page.
这篇关于为什么我的页面加载缓慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!