4 ms·
async tracking helps if the size of the download is large. In that case, a small stub of js is loaded, execution continues, and the large payload is downloaded
by axod 16y ago
async tracking helps if the size of the download is large. In that case, a small stub of js is loaded, execution continues, and the large payload is downloaded async.
But the tracking code is small. It's not going to make much difference at all IMHO (And anecdotally in my experience).
Async vs sync, you're still going to have a DNS lookup, and an initial GET unless it's cached. Both can block your site from loading...
- mrkurt 16y agoGoogle Analytics doesn't load any stubs for async tracking, it inlines an array of "events to send" and then loads the entire GA script asynchronously. Once it's done, it runs through the list of things to track.