PluginProbe
Flying Scripts: Delay JavaScript to Improve Site Speed & Performance / 1.2.2
Flying Scripts: Delay JavaScript to Improve Site Speed & Performance v1.2.2
trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4
flying-scripts / settings / faq.php

faq.php in Flying Scripts: Delay JavaScript to Improve Site Speed & Performance 1.2.2, at settings/faq.php

19 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 function flying_scripts_view_faq() {
3 ?>
4 <h3>What are the ideal scripts to be included?</h3>
5 <p>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.</p>
6
7 <h3>What should I put in include keywords</h3>
8 <p>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.</p>
9
10 <h3>How is it different from <code>defer</code></h3>
11 <p><code>defer</code> tells the 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 user interaction.</p>
12
13 <h3>What is user interaction?</h3>
14 <p>Events from the user like mouse hover, scroll, keyboard input, touch in a mobile device, etc.</p>
15
16 <h3>What is timeout?</h3>
17 <p>Even if there is no user interaction, scripts will be executed after the specified timeout.</p>
18 <?php
19 }