How to calculate approximately the connection speed of a website using JavaScript?
I want to create a javascript widget like, which will calculate the speed opening the current opened page.
I am asking if this can be done using just javascript and what will be the idea.
Update
Note that the page size is always Unknown.