gmhk
gmhk

Reputation: 15960

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?

Upvotes: 4

Views: 8745

Answers (2)

jasonbar
jasonbar

Reputation: 13461

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.

Upvotes: 5

Tushar Tarkas
Tushar Tarkas

Reputation: 1622

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.

Upvotes: 2

Related Questions