I’m trying to evaluate my js load times, but Firebug won’t show them to me.
I go to the net panel, load the page, and I can see my 10 or 12 js files for a split second, but then they vanish and are replaced by Google Analytic’s script as the only one that shows up at the end. What gives?
EDIT:
To illustrate what I’m experiencing, look at this series of screenshots. Though I took them about a minute apart, they represent about a 3 second period as if I were to count out loud 1, 2, 3, as I’m watching the page refresh and FB profile the js files being fetched. As you can see, it seems to at first see them all, then they just drop off. Even with persist enabled, the record only stores that one final file. Files: One, Two, Three.
UPDATE
If I go under the “ALL” tab it does display the other .js files, just not under the JS tab. Does anyone have any idea?
Your Javascript files are served with Content-Type
text/htmlinstead oftext/javascript,application/javascriptorapplication/x-javascript. Therefore they appear on HTML-Tab and not on JS-Tab as soon as Firebug has read the HTTP Header. Until Firebug has read the headers it seems like Firebug looks for the “extension”*.js. That’s why you see your js-files for a moment in JS tab, but when the HTTP Header with wrong Content-Type is loaded they get switched over to the HTML-Tab.Summary
You are sending wrong HTTP Content-Type
text/htmlfor JS-Files. Send proper HTTP Content-Typeapplication/javascriptfor your JS-Files and everything should be fine.