Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have a webpage that loads quickly 100% of the time in chrome, but only 10% or so of the time in Firefox. Looking at the fiddler capture, Firefox only loads 2 of the 100ish files being pulled before it hangs. The error does not seem to be on the server or network side, however, because Chrome never encounters a problem.

How do I find the root of this stall?

While I suspect Firefox's javascript execution is what is causing the hang, are there any particular methods to narrow down the search for the bad code?

share|improve this question
    
100ish files? Are you sure there isn't a better way to deliver that content? –  John Conde Jan 5 '11 at 18:27
    
The website is still in dev, the files will be condensed when it is released –  amccormack Jan 5 '11 at 20:01
    
FF sucks compared to webkit browsers such as chrome or safari –  Frank Jan 10 '11 at 0:47
add comment

2 Answers

I wouldn't say bad code, but bad design. Are you serious when you say that have more than 100 files to only one page?

Using image sprites, only one css file, using a nice javascript library and compressing other scripts... You need to think how to deliver the minimum to client, hence each extra request takes extra time.

But okay, your problem seems to be with js loading stuff on Firefox. Install the Firebug addon and keep an eye on network tab to check what is going on and catch the error on the fly.

share|improve this answer
add comment

Find out for sure whether it is the JavaScript by installing a script blocking plugin on Firefox. If the page is zippy to load when the script is blocked, then you know for sure.

If so, the hard reality is that all browsers handle good JavaScript pretty well. That means it's time to re-do or optimize the JavaScript on the site.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.