Forum Moderators: martinibuster

Message Too Old, No Replies

Weight of Adsense/Analytics

So much optimization to plug 100K on my site?

         

explorador

5:13 pm on Jun 29, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Any page on my website has 124KB+ of Google Adsense and Analytics code. Have you measure your site "extras"? This is without counting the calls to this JS.

I just removed Analytics code... by now even being a great tool I see no gain on relying on it more than on my other server reports.

How much is your site with the extra kbytes? G has fast servers but I'm better off getting back some speed without the analytics code. Do you think G could-should make smaller code?

maximillianos

5:18 pm on Jun 29, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think they should offer a server side solution... This is why I continue to use Awstats. It may suck in regards to feature comparisons, but it leaves zero footprint on my pages and it works for my purposes of monitoring traffic trends and keywords to my pages at a high level...

purplecape

5:22 pm on Jun 29, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



124KB+ of Google Adsense and Analytics code

You sure about that number? I don't think have any page on my site that has that much code, including both AdSense and Analytics--they add a few KB at most, and most pages on my site end up in the 20-40 KB range.

I don't see any meaningful impact from AdSense and Analytics code.

netmeg

5:34 pm on Jun 29, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You can always host the GA file locally.

But I haven't noticed any huge lags. I had a third party twitter button that was dragging things down; once I removed that, searches were fast as lightning.

incrediBILL

6:47 pm on Jun 29, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Any page on my website has 124KB+ of Google Adsense and Analytics code.

Let's not start a panic for no reason where there is nothing to panic about.

Actually your Google Analytics files are typically cached in the browser.

It's not a file downloaded per web page, it's downloaded once per Google.

Each time the browser encounters another site using GA or AdSense it simply runs the code previously downloaded.

Otherwise, without browser cache, every site on the planet running AdSense and GA would become massively large to download which simply isn't the case otherwise everyone encountering those sites would be screaming about the speed and they aren't.

explorador

3:19 am on Jun 30, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Point taken, even as G itself doesn't recommend hosting ga.js on your server. Anyway, make the test, do a "save webpage" to your HD and check the extra code. You will be surprised.

incrediBILL

6:03 am on Jun 30, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Won't be surprised at all because I know how big these javascripts are but I also know how browsers cache these things so it's only a one-time issue per load.