Reputation: 93
I am currently investigating why my site takes so long to load. The Firebug net panel tells me this:
7.74s (onload: 16.02s)
What might be causing this huge gap? What exactly is the browser doing after all resources are loaded until it fires the onload event?
Thanks.
Upvotes: 5
Views: 2783
Reputation: 19702
It's download time vs processing time onload. See also Timing with the Firebug Net Panel: What is the onload time?
Processing time of your onload scripts is very high, so use a profiler:
Use the Firefox Profiler tool to find bottlenecks in your JavaScript code. The Profiler periodically samples the current JavaScript call stack and compiles statistics about the samples.
You can launch the Profiler by selecting "Profiler" from the "Web Developer" menu. You'll find the "Web Developer" menu under the "Tools" menu on Linux and OS X, and directly under the "Firefox" menu on Windows.
Upvotes: 0
Reputation: 157
It would be difficult to say the cause without a site URL. But you can do the following things at your end.
You can install the following Firefox addons
Page Speed addon (check it with Google it is a product from Google itself)
This addons will give you fairly good idea about what causes your issue.
Also have a look the Best Practices for Speeding Up Your Web Site article from Yahoo! that specifies several points to improve the performance of the website.
Hope this helps.
JP
Upvotes: 4
Reputation: 15321
If you use the Net panel in Firebug you will get an itemised list of requests and times - you can determine the problem from there.
Ahem...
Upvotes: -1