I've been using the normal statcounter code on my site no problem for a long while, but I've trying to take a more hands on approach to managing the pageload, and I don't want statcounter to load until the end.

So I have an window.onload function which includes a jquery call to pull in the statcounter script