Script Delay
Delay chat widgets, trackers and embeds until the visitor scrolls or taps, and defer the rest. Faster first load.
Coming to WordPress.org soon
Most pages load scripts nobody needs in the first second, like analytics tags and chat bubbles. Script Delay holds the ones you list until the visitor scrolls, taps, types or moves the mouse, or until a timeout you set.
It can also defer your other scripts using WordPress's own loading rules, so order and dependencies stay right. Defer is off until you turn it on, and the plugin never touches the admin, previews or page-builder editors.
What the free version does
- Delay scripts by name or by part of their URL
- Delay inline snippets that plugins add the WordPress way
- Timeout so delayed scripts load even without interaction
- Optional defer for everything else, with jQuery left alone
- Exclusions for anything that breaks
Pro
The free version is complete on its own. Pro adds:
- Hard-coded scripts: also delays snippets pasted straight into the theme.
- Page rules: switch it off on chosen pages, or drop a script where it is not used.
- Connection hints: DNS prefetch for the domains you delay.
Privacy
No outside requests and nothing stored about visitors. It only changes how script tags are printed.
Questions
What should I delay?
Tag managers, pixels, chat widgets and heat maps: googletagmanager.com, connect.facebook.net, hotjar.com, clarity.ms, embed.tawk.to. Leave anything that builds the page alone.
Something broke after turning on Defer.
Add that script to Never defer, or untick Defer. Keeping jQuery loading normally, the default, avoids most problems.
Does delaying analytics lose visits?
Visitors who leave before any interaction or the timeout are not counted. A timeout of a few seconds keeps most of them.