Skip to main content

Does the TG Site tag increase loading time?

Written by TrafficGuard Support
Updated this week

The TG site tag is designed to have minimal impact on your website's loading speed and user experience. Here's what that means in practice.

ℹ️ Read more about why the TG site tag is important.

It loads without blocking your page

The TG site tag is loaded asynchronously, which means it runs in the background independently of your page content. Your page's text, images, and interactive elements all load first — the tag doesn't hold anything up.

In simple terms: your visitors won't notice it's there.

Through numerous performance analyses sampled on an array of devices and browsers, the TG Site tag has performed far better than common advertising tags, such as the Facebook pixel.

It's very small and fast

The tag file (tg.js) is approximately 20 KB when compressed — significantly smaller than most third-party scripts. For comparison, the Facebook pixel is considerably larger.

The file is delivered via Google's Cloud CDN, a global network of servers designed for speed. In most cases, the tag loads in under 20ms — faster than the blink of an eye.

It's easy on your visitors' devices

After your page loads, the tag does very little ongoing work. It only performs the minimum processing needed to verify whether a visitor is a real person or an invalid source, and the most intensive checks are limited to once per user session. This means it won't cause slowdowns, lag, or battery drain on your visitors' devices.

What if page speed is a top priority for you?

If you want to be extra cautious about page performance — for example, if you're optimising for Core Web Vitals or have a speed-sensitive site — you can load the tag using the defer attribute:

html

<script src="..." defer></script>

This tells the browser to wait until the full page has finished loading before running the tag. The trade-off is that very short visits (where someone clicks an ad and leaves within a second or two) may not be captured in your TrafficGuard reports.

Continued optimisation

While we are continually optimising the script for detection and behavioural analysis, we closely monitor the performance of the script and make any possible optimisations.

💡 Tip

To implement the TG site tag see Installing the TG site tag

Did this answer your question?