---
title: "Smart Delay - GeneratePerf"
description: "Load low-priority third-party scripts after the page, one by one, without touching your theme."
url: "https://generateperf.com/docs/smart-delay/"
lang: "en-US"
published: "2026-09-24T11:48:52+02:00"
modified: "2026-10-20T13:54:06+02:00"
---

[Docs](https://generateperf.com/docs/) / Guides

# Smart Delay

Load low-priority third-party scripts after the page, one by one, without touching your theme.

## What it does

Smart Delay applies to the scripts you paste in the **Low-priority tags** field of [Custom code](https://generateperf.com/docs/settings-advanced/#code). It does **not** delay the other scripts of your site.

For each of these tags, GeneratePerf:

1. changes its type to `smart/delay`, so the browser does not run it while the page loads;
2. preloads its file at low priority;
3. runs the scripts one by one, in the order of the field, starting one second after the page has loaded, spaced according to the memory of the device; an inline script (without `src`) waits until the external scripts above it have loaded, 5 seconds at most (`gtag('config')` after `gtag.js`, for example).

## Good candidates

Chat widgets, heat maps, social embeds, advertising or analytics tags that are not needed to display the page. Keep tags that must run before any interaction (consent tools, A/B testing) in the high-priority area instead.
