Guide
Delaying scripts until the visitor interacts can transform your mobile score. Here is how it works, what to delay and what to keep.
“Delay JavaScript” means a script doesn’t run when the page loads—it waits until the visitor first moves the mouse, scrolls, taps or presses a key. The page appears and becomes usable sooner, and lab tests like PageSpeed see far less blocking time.
Delayed scripts that depend on DOMContentLoaded or jQuery’s ready event may never see those events fire. A good delay implementation replays them, runs scripts in their original order and keeps jQuery available for scripts that need it. It should also yield between scripts, so the visitor’s first tap is answered immediately instead of freezing while everything runs at once.
FastFront delays third-party scripts automatically, keeps their order, replays load events and runs them in small steps after the first tap is shown—so the page answers instantly. On Elementor pages it goes a step further and replaces jQuery and Elementor’s frontend scripts with a small runtime, so there is much less JavaScript left to delay.
See your own site’s score next to an optimized copy—free, in about a minute.
We’d like to use Google Analytics cookies to see how visitors use this site. They load only if you accept. Privacy