How to find the average load time for a site?

How to write code (in any programming language, preferably in java) that calculates the average load time of any website (including all embedded elements, such as images, Javascript, CSS, etc.)?

+4
source share
9 answers

I used the souptag framework to parse the html page, and then found the individual src attribute of all the tags, then the individually found size of each page mentioned in the src attribute, and then, according to my internet speed, I found the average load time.

+1
source

I would just use YSlow

+5
source

I think websiteoptimization.com contains everything you need :)

+2
source
+1
source

Depends on what you mean by "average load time."

If you sit on your PC with your site working locally and press F5 again, you will get significantly different results for those who look at the same code that is deployed in a data center on the other side of the world.

+1
source

Fiddler is another option. See Fiddler Home Page

A good screenshot of the timeline is here .

+1
source

Perceived load times are also important. External scripts delay the transfer of everything below them until they are downloaded and executed in all browsers, so it’s best to push them to the very bottom of the page, if possible, unlike the top, which is a habit of many developers, Another source of delay in some browsers is img tags, where width and height are not specified. The browser gives the image some time to load so that it can get the layout on the first try. Resolving these issues will make your site more responsive, even if the total load time does not change.

+1
source

This has a nice JavaScript way to check webpage load time: http://javascript.internet.com/text-effects/loading-time-indicator.html

0
source

Source: https://habr.com/ru/post/1285801/


All Articles