# flying-scripts/1.1.7/settings/view.php

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

- Page: https://pluginprobe.com/plugins/flying-scripts/1.1.7/code/settings/view.php
- Raw: https://pluginprobe.com/plugins/flying-scripts/1.1.7/raw/settings/view.php
- Modified: 2020-03-28T15:14:04+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.1.7/code/settings/view.php#L10-L20`.

```php
<h2>Flying Scripts by WP Speed Matters Settings</h2>

<?php
    include('settings.php');
    include('faq.php');
    include('optimize-more.php');

    $active_tab = isset($_GET['tab']) ? $_GET['tab'] : "settings";

    if (isset($_POST['submit'])) {
        echo '<div class="notice notice-success is-dismissible"><p>Settings have been saved! Please clear cache if you\'re using a cache plugin</p></div>';
    }
?>

<h2 class="nav-tab-wrapper">
    <a href="?page=flying-scripts&tab=settings" class="nav-tab <?php echo $active_tab == 'settings' ? 'nav-tab-active' : ''; ?>">Settings</a>
    <a href="?page=flying-scripts&tab=faq" class="nav-tab <?php echo $active_tab == 'faq' ? 'nav-tab-active' : ''; ?>">FAQ</a>
    <a href="?page=flying-scripts&tab=optimize-more" class="nav-tab <?php echo $active_tab == 'optimize-more' ? 'nav-tab-active' : ''; ?>">Optimize More!</a>
</h2>

<?php
    switch ($active_tab) {
        case 'settings':
            flying_scripts_view_settings();
            break;
        case 'faq':
            flying_scripts_view_faq();
            break;
        case 'optimize-more':
            flying_scripts_view_optimize_more();
            break;
        default:
            flying_scripts_view_settings();
    }
?>
```
