While there are so many web page and tools provided for measuring the time loading speed. They usually measure the response time, how many requests per page and so on?
Say, if I have a webpage divided into 10 sections. Some section with heavy content such as image while some with only text content. Is there a way using Javascript or event type to measure the specific section loading time?
I have considered performance.timing
but it seems it is based on the whole page.
While using jQuery
with .load
and .ready()
is only support for document and window object.
If I can measure the specific dom or section loading time, I can further fine tune and optimize a webpage for mobile or a desktop page for use in mobile.