2 ms·
The pattern Async Analytics uses works in all browsers and it's simple enough that you don't need a library for it: var script = document.createElement('sc
by pornel 15y ago
The pattern Async Analytics uses works in all browsers and it's simple enough that you don't need a library for it:
var script = document.createElement('script');
script.async = true; // enables out of order execution
script.src = '…'
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(script, s);
http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html http://code.google.com/apis/analytics/docs/tracking/asyncTra...