Flying Scripts

Mô tả

Download and execute JavaScript on user interaction.

Quick Links

Flying Scripts delay the execution of JavaScript until there is no user activity. You can specify keywords to include JavaScripts to be delayed. There is also a timeout which executes JavaScript when there is no user activity.

Why should I use this plugin?

JavaScript is very resource-heavy. By delaying the execution of non-critical JavaScript (that are not needed for the initial render), you’re prioritizing and giving more resources to critical JavaScript files. This way you will reduce render time, time to interactive, first CPU idle, max Potential input delay etc. This will also reduce initial payload to browsers by reducing the no. of requests.


Cài đặt

  1. Visit ‘Plugins > Add New’
  2. Search for ‘Flying Scripts’
  3. Activate Flying Scripts for WordPress from your Plugins page.
  4. Visit Settings -> Flying Scripts to configure

Hỏi đáp

What are the ideal scripts to be included?

Any script that is not crucial for rendering the first view or above fold contents. 3rd party scripts like tracking scripts, chat plugins, etc are ideal.

What should I put in include keywords

Any keyword inside your inline script that uniquely identifies that script. For example “fbevents.js” for Facebook Pixel, “gtag” for Google Tag Manager, “customerchat.js” for Facebook Customer Chat plugin.

How is it different from `defer`

defer tells browser to download the script when found and execute it when HTML parsing is complete. When you include a script in Flying Scripts, those scripts won’t be executed until there is a user interaction.

What is user interaction?

Events from the user like mouse hover, scroll, keyboard input, touch in mobile device, etc.

What is timeout?

Even if there is no user interaction, scripts will be executed after the specified timeout.

Đánh giá

3 Tháng Sáu, 2022
Great plugin, solves many issues with slow loading times, FCP, LCP, and such, by allowing you to delay non-essential javascript.
31 Tháng Năm, 2022
This plugin is pretty easy to use for beginer like me. I can see it, my site load faster after using this plugin for my Script. Thank you.
6 Tháng Ba, 2022
This good plugin improve speed of my site. You can use this plugin to reduce loading time of css/js. Thank you. rgds, ss
17 Tháng Hai, 2022
This plugin alone got me 90+ on Google Insights and A+ on GTMetrix. I'm almost hesitant to write this review so I can keep this plugin as a secret weapon. If you're struggling with CLS, LCP, or even load speeds, there's a good chance, that this ultra-minimal, plugin will solve your problem. I installed it on most sites I managed but ultimately deleted it to install FlyingPress, which is made by the guy who makes this.
Đọc tất cả 29 đánh giá

Người đóng góp & Lập trình viên

“Flying Scripts” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

Nhật ký thay đổi


  • Fix – Added mouse wheel event for user interaction


  • Fix – FacetWP compatibility


  • New – Exclude on pages
  • New – Set timeout to Never


  • Security updates


  • [BUGFIX] Disable for admin interface when using W3 Total Cache


  • [BUGFIX] Support for W3 Total Cache


  • [REMOVED] Unnecessary “scroll” event


  • [UPDATE] Set data-type='lazy' instead of type='lazy'. Removed setting type='text/javascript' via JavaScript


  • [BUGFIX] Remove event listeners after scripts are loaded


  • [UPDATE] Copy updates


  • [UPDATE] Minified JavaScript
  • [UPDATE] Updated copy, FAQ


  • [BUGFIX] Exclude json and other script tags


  • [NEW] Load scripts on user interaction
  • [REMOVED] Load scripts after delay


  • Initial release