News for hackers. Stuff that matters.
Re:Google Releases mod_pagespeed for Apache by tropin on Wednesday November 03, 2010 @02:35PM (#1865883)
My adsense scripts almost always freeze my webs waiting for them to load.

Do you fellow HNers know any way to speed up them or at least load them in the background?

Re:Google Releases mod_pagespeed for Apache by asolove on Wednesday November 03, 2010 @02:45PM (#1865935)
Put script tags at the end of the body, not in the header. If you still have a problem, dynamically add the script tags after the page has already loaded and displayed.
Re:Google Releases mod_pagespeed for Apache by tropin on Wednesday November 03, 2010 @03:12PM (#1866057)
???

Could you share any sample of adsense with scripts in the header? Also, do you know any way to load dynamically the scripts?

Google seems to be full of people trying to do it to no avail.

Re:Google Releases mod_pagespeed for Apache by bentlegen on Wednesday November 03, 2010 @04:29PM (#1866359)
Re:Google Releases mod_pagespeed for Apache by lamnk on Wednesday November 03, 2010 @08:15PM (#1867030)
Did you read the parent comment ? He asked about adsense script, not analytics tracking code.
Re:Google Releases mod_pagespeed for Apache by metachris on Wednesday November 03, 2010 @02:43PM (#1865923)
You could inject the analytic script after the page has loaded instead of having it part of it.
Re:Google Releases mod_pagespeed for Apache by tropin on Wednesday November 03, 2010 @03:10PM (#1866044)
I'm talking about ads, not analytics.
Re:Google Releases mod_pagespeed for Apache by aiurtourist on Wednesday November 03, 2010 @03:53PM (#1866222)
It's been a while, but I think you can choose between IFRAME and DOM-injection methods. Researching that might get you started.