Enter your search

30x Faster. The GSTC just got even quicker

By

The new GoSquared Tracking Code. 30x faster. 25% smaller. Better for everyone.

Back in September, we wrote about how we dramatically improved load times of the GSTC (GoSquared Tracking Code), the snippet of JavaScript you place on your site to enable GoSquared to track your traffic. We made it asynchronous, non-blocking, globally distributed, and reduced load times by 80%. Now we’re back with another update.

This time we’ve focused on the actual JavaScript executed by the GSTC. We’ve been through every line of code with a fine toothcomb and optimised it for blazingly fast execution, and we’ve made some real breakthroughs. We’ve now reduced the total script execution time from about 300ms to an average of 10ms. Yes, you heard that right. We’ve made our tracking script thirty times faster. In fact, in some browsers, the tracker is more than a hundred times faster than before. And no, this is not a late April Fools joke.

Besides that, we’ve also done some clever optimisation of our code to reduce the size of the tracking engine’s footprint. It wasn’t easy, as it was pretty small to begin with, but we’ve managed to make the tracking JavaScript file more than 25% smaller. That means 25% faster load time across the board. Add that to our crazy execution speed improvements, and this means that while our tracking code was very unobtrusive before, its impact on the performance on your site is now barely detectable.

And despite the fact that we’ve reduce the size of the tracking engine, we’ve actually gone and added more functionality. We’ve added in a few new functions to make it easier to integrate GoSquared into your site if you have a lot of JavaScript. Take a look over at the full documentation of these functions, and have a play around.

And the best part about all these changes? You don’t have to do a thing. The tracking code you put on your website is still exactly the same. So you’re already taking advantage of these performance improvements, and can start using the new functionality straight away.

Written by
JT is a co-founder and the lead front-end engineer at GoSquared. He's responsible for the shiniest of the shiny projects we work on.

You May Also Like

Group 5 Created with Sketch. Group 11 Created with Sketch. CLOSE ICON Created with Sketch. icon-microphone Group 9 Created with Sketch. CLOSE ICON Created with Sketch. SEARCH ICON Created with Sketch. Group 4 Created with Sketch. Path Created with Sketch. Group 5 Created with Sketch.