# flying-scripts/1.2.4/flying-scripts.php

Flying Scripts: Delay JavaScript to Improve Site Speed &amp; Performance, version 1.2.4. 25 lines.

- Page: https://pluginprobe.com/plugins/flying-scripts/1.2.4/code/flying-scripts.php
- Raw: https://pluginprobe.com/plugins/flying-scripts/1.2.4/raw/flying-scripts.php
- Modified: 2025-04-14T14:02:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/flying-scripts/1.2.4/code/flying-scripts.php#L10-L20`.

```php
<?php
/**
 * Plugin Name: Flying Scripts
 * Plugin URI: https://wordpress.org/plugins/flying-scripts/
 * Description: Delay JavaScript to boost speed by loading scripts only when needed, reducing render-blocking for faster loading and a smoother user experience.
 * Author: WP Speed Matters
 * Author URI: https://wpspeedmatters.com/
 * Version: 1.2.4
 * Text Domain: flying-scripts
 */

// If this file is called directly, abort.
if (! defined('WPINC')) {
    die;
}

// Define constant with current version
define('FLYING_SCRIPTS_VERSION', '1.2.4');

include('init-config.php');
include('settings/index.php');
include('inject-js.php');
include('html-rewrite.php');
include('shortcuts.php');
add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'flying_scripts_add_shortcuts');
```
