From a9c32c30e017854b64429d1cf71a2d68dadb831b Mon Sep 17 00:00:00 2001 From: Mahesh Murali P Date: Tue, 2 May 2023 21:24:07 +0100 Subject: [PATCH] DI-5336 Removed InstantPage from the plugin. --- README.md | 2 +- composer.json | 2 +- nightingale-companion.php | 3 +-- package-lock.json | 4 ++-- package.json | 2 +- performance/instantpage.php | 21 --------------------- performance/performance-enhancements.php | 4 ---- readme.txt | 8 ++++++-- settings.php | 6 ------ 9 files changed, 12 insertions(+), 40 deletions(-) delete mode 100644 performance/instantpage.php diff --git a/README.md b/README.md index a1271ba..03f421c 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Download the `nightingale-companion.zip` from this repository. Install this to y - REMOVED - [LoadCSS](https://github.com/filamentgroup/loadCSS) - this uses the loadcss javascript library which defers loading of your stylesheets to after the main html has loaded. This increases the speed of time to interaction for your pages - - [InstantPage](https://github.com/instantpage/instant.page) - this uses the instantpage javascript library to trigger + - REMOVED - [InstantPage](https://github.com/instantpage/instant.page) - this uses the instantpage javascript library to trigger pages preloading when a user hovers their mouse over links. This does not, in fact increase load times but does appear perception of load times as those few partial seconds pre click are actually being used to start loading the next page. - REMOVED - Javascript Loading - Defaultss to native WP loading, but you can choose to instead: diff --git a/composer.json b/composer.json index b231f61..a3e2fc3 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "nhsleadership/nightingale-companion", - "version": "1.3.5", + "version": "1.3.6", "dist": { "url": "https://github.com/NHSLeadership/nightingale-companion/archive/master.zip", "type": "zip" diff --git a/nightingale-companion.php b/nightingale-companion.php index facfff1..cd84c70 100644 --- a/nightingale-companion.php +++ b/nightingale-companion.php @@ -7,7 +7,7 @@ * License: GPL v3 * Requires at least: 5.0 * Tested up to: 6.0 -* Version: 1.3.5 +* Version: 1.3.6 * * @package nightingale-companion */ @@ -65,7 +65,6 @@ function nightingale_companion_activate() { function nightingale_companion_default_values() { $defaults = array( 'loadcss' => 'on', // Enable Load CSS - 'instantpage' => 'on', // Enable InstantPage 'javascript_loading' => 'none', // Enable Defer JS 'browser_cache' => '43200', // Set Browser Cache to 12 hours 'disable_emojis' => 'on', // Disable Emojis diff --git a/package-lock.json b/package-lock.json index 263170f..80526fc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "nightingale-companion", - "version": "1.3.5", + "version": "1.3.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "nightingale-companion", - "version": "1.3.5", + "version": "1.3.6", "license": "GPL-3.0-or-later", "devDependencies": { "jsdoc": "^3.6.7", diff --git a/package.json b/package.json index 3bd0dd2..ead9833 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nightingale-companion", - "version": "1.3.5", + "version": "1.3.6", "license": "GPL-3.0-or-later", "main": "nightingale-companion.php", "scripts": { diff --git a/performance/instantpage.php b/performance/instantpage.php deleted file mode 100644 index 3a7e66f..0000000 --- a/performance/instantpage.php +++ /dev/null @@ -1,21 +0,0 @@ - array( 'title' => __( 'Performance Options', 'nightingale' ), 'fields' => array( - 'instantpage' => array( - 'title' => 'InstantPage', - 'type' => 'checkbox', - 'checked' => 'true', - 'text' => 'Enable instantpage library - this starts a page loading when a mouse hovers over it which improves User Experience', - ), 'disable_emojis' => array( 'title' => 'Disable Emojis', 'type' => 'checkbox',