开发者

How can we calculate the HTTP request made by each web page of my website

can any one please help me to count how many开发者_开发技巧 HTTP request has to be made when i open my website Cricket News

I am trying to increase the performance and better loading on all browsers.

1 more questions 1) How many Http Requests is better for better performance?


The Firefox extensions Firebug with YSlow are an excellent way to determine this sort of metric. YSlow will give you additional optimization suggestions based on what it sees from your site.

Edit: To answer your second question, fewer HTTP requests are always better than more. There is no magic number. You have to balance doing everything you need to do in the fewest requests possible with maintainability of your code.


I could see there are a total of 99 requests going through for the home page. I used firebug plugin in firefox (https://addons.mozilla.org/en-US/firefox/addon/1843/) to check the number of requests. It also gives you time required for each of the request to get served. Quite a useful tool for debugging purposes.

If there is no hard requirement of programatically finding out the number of requests then you can live with it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜