3 ms·
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 backgr
by tropin 16y ago
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?
- metachris 16y agoYou could inject the analytic script after the page has loaded instead of having it part of it.
- tropin 16y agoI'm talking about ads, not analytics.
- aiurtourist 16y agoIt's been a while, but I think you can choose between IFRAME and DOM-injection methods. Researching that might get you started.
- asolove 16y agoPut 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.
- tropin 16y ago??? 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.