1
vote
2answers
42 views

Joining and compressing all javascript files together - good idea?

Curently, I avoid loading any unnecesary scripts on individual pages of my site. I have a class that remembers all javascript files that were requested during PHP processing and adds them to HTML. I ...
1
vote
2answers
39 views

Does the JavaScript that Google Analytics Experiments adds slow down alternate versions, and how could I measure this?

I am using Content Experiments in Google Analytics to test three different landing pages. This uses JavaScript on the initial page to load the alternates. Would the additional JavaScript add to the ...
1
vote
1answer
284 views

What could be causing this long waiting time on page load?

What could be causing a 1.18s wait time when my page loads? Just to make sure I did not have any conflicting or parallel scripts loading, I completely deleted all the script on my home page and ran ...
2
votes
1answer
247 views

Can minification in Google PageSped service break Adsense?

A few days ago I applied for Adsense account. But it was rejected due website being down. Here is the full message: We did not approve your application for the reasons listed below. Issues: ...
-2
votes
3answers
453 views

If something can be achieved using CSS or JavaScript, which will render faster? [closed]

I have two working solutions for hover navigation that I've built. One solution uses JS, one use CSS. My question is, assuming a browser is JS-enabled, which solution will work faster? I'll most ...
12
votes
4answers
2k views

Loading main javascript on every page? Or breaking it up to relevant pages?

I have a 700kb decompressed JS file which is loaded on every page. Before I had 12 javascript files on each page but to reduce http requests I compressed them all into 1 file. This file is ~130kb ...
0
votes
1answer
579 views

Parallel downloading of JavaScript files on page load

Below is a quote from one of the Yahoo performance pages: While a script is downloading, however, the browser won't start any other downloads, even on different hostnames. When I look at page ...
15
votes
4answers
31k views

How do I set expiration headers for CSS, JS, and Images?

I have recently analysed my website with pagespeed addon on firebug. It suggested me to set expiration on CSS, JS and image files. I am wondering how do i do this?
11
votes
5answers
278 views

Should JavaScript referenced in the head section be served from the same hostname as the main document?

I was under the impression that for the best performance, Javascript should be treated as static content and served from a cookieless domain along with CSS files, images, etc. But Google says here: ...