How to speed up Google AdSense download time and analytics?

It might fall under the category of “you can't,” but I thought it might be wise to at least see if there is anything that I can do about it.

According to FireBug, the main bottleneck during the loading of my page is the gap between loading html and loading Google adsense and analytics. Note the screenshot below that the initial GET takes only 214 ms, and the adsense + analytics download takes about 130 ms in combination. However, the page load time is 1.12 seconds due to this long pause between the initial GET and the adsense / analytics load.

If that matters at all, the site is disconnected from the ASP.NET MVC RC1 stack.

alt text http://kevinwilliampang.com/pics/firebug.jpg

Update: after removing adsense and analytics, I still see slow response time. Hanging over the initial GET request, I see that the following speeds: 96 ms Receive data, 736 ms DOMContentLoaded (event), 778 ms "load" (event). I assume performance is the result of my javascript jQuery that has event handling associated with ($ document) .ready () event?

+3
source share
6 answers

You must put your analytic code at the bottom of the page so that everything else loads first. Other than that, I don’t think you can do much.

edit. , urchin.js. , .

+4

, Firebug on Stack Overflow, Analytics.

,

http://www.google-analytics.com/__utm.gif?...

DOMContentLoaded ( ). AdSense. ?

+1

, , , . , . , , , , onload - jQuery . js , , .

google , *, , , , . script , , AdSense HTML, script.

* , Google , ,

+1

, , , , . JavaScript HTTP-, <head>

0

Google , , - - ?

script , , , urchin.js.

0

Maybe your page just takes so long to parse? Nothing seems to be happening on the net. It just waits about a second before adsense / analytics queries are even launched. I don’t think you have several hundred tables per page or something else ?;)

0
source

Source: https://habr.com/ru/post/1703250/


All Articles