Delay JS

"Delay JS" works a bit differently from "defer." When you use delay JS, the JavaScript execution is postponed until after a specific event occurs, in our case when the user interacts with the page (like scrolling, clicking, or typing). This technique ensures that the page loads even faster because the JavaScript doesn't run immediately when the page is loading. Instead, it waits until the user starts engaging with the page.

In Super Page Cache, adding delay JS means the browser will load the page's visible content first, without immediately processing the JavaScript. This can further enhance performance, especially on pages with a lot of scripts, by making the page appear to load almost instantly. The JavaScript is only triggered once the user interacts with the page.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us