Test case which measures the speed difference between the default asynchronous Google Analytics snippet and the optimized version.
Note that I commented out the
s.parentNode.insertBefore(g, s); line in both scripts, since otherwise the
<script> element gets inserted a few thousand times every time you run the tests. Since this code is the same in both scripts, it shouldn’t have an influence on the results.
Ready to run.
|My Optimized snippet
You can edit these tests or add more tests to this page by appending /edit to the URL.