Fast Velocity Minify - Version 3.1.3

Version Description

[2021.01.10] = * Link preload headers improvement

Download this release

Release Info

Developer Alignak
Plugin Icon 128x128 Fast Velocity Minify
Version 3.1.3
Comparing to
See all releases

Code changes from version 3.1.2 to 3.1.3

Files changed (3) hide show
  1. fvm.php +1 -1
  2. inc/frontend.php +6 -3
  3. readme.txt +4 -1
fvm.php CHANGED
@@ -6,7 +6,7 @@ Description: Improve your speed score on GTmetrix, Pingdom Tools and Google Page
6
  Author: Raul Peixoto
7
  Author URI: http://fastvelocity.com
8
  Text Domain: fast-velocity-minify
9
- Version: 3.1.2
10
  License: GPL2
11
 
12
  ------------------------------------------------------------------------
6
  Author: Raul Peixoto
7
  Author URI: http://fastvelocity.com
8
  Text Domain: fast-velocity-minify
9
+ Version: 3.1.3
10
  License: GPL2
11
 
12
  ------------------------------------------------------------------------
inc/frontend.php CHANGED
@@ -75,15 +75,18 @@ function fvm_process_page($html) {
75
  $allpreloads = array();
76
  foreach($html->find('link[rel=preload]') as $tag) {
77
 
78
- # normal importance by default
79
- $importance = 'normal';
80
  if(isset($tag->importance)) {
81
  $importance = $tag->importance;
 
 
82
  }
83
 
84
  # highest to high (but earlier in page)
85
  if(isset($tag->importance) && $tag->importance == 'highest') {
86
- $tag->importance = 'high';
 
87
  }
88
 
89
  # collect, group by importance and remove
75
  $allpreloads = array();
76
  foreach($html->find('link[rel=preload]') as $tag) {
77
 
78
+ # auto importance by default
79
+ $importance = 'auto';
80
  if(isset($tag->importance)) {
81
  $importance = $tag->importance;
82
+ } else {
83
+ $tag->importance = 'auto';
84
  }
85
 
86
  # highest to high (but earlier in page)
87
  if(isset($tag->importance) && $tag->importance == 'highest') {
88
+ $tag->importance = 'high';
89
+ $importance = 'highest';
90
  }
91
 
92
  # collect, group by importance and remove
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Alignak
3
  Tags: PHP Minify, Lighthouse, GTmetrix, Pingdom, Pagespeed, Merging, Minification, Optimization, Speed, Performance, FVM
4
  Requires at least: 4.7
5
  Requires PHP: 5.6
6
- Stable tag: 3.1.2
7
  Tested up to: 5.6
8
  Text Domain: fast-velocity-minify
9
  License: GPLv3 or later
@@ -55,6 +55,9 @@ Version 3.0 is a major code rewrite to improve JS and CSS merging, but it requir
55
 
56
  == Changelog ==
57
 
 
 
 
58
  = 3.1.2 [2021.01.09] =
59
  * Fixed a PHP notice on wp-admin
60
 
3
  Tags: PHP Minify, Lighthouse, GTmetrix, Pingdom, Pagespeed, Merging, Minification, Optimization, Speed, Performance, FVM
4
  Requires at least: 4.7
5
  Requires PHP: 5.6
6
+ Stable tag: 3.1.3
7
  Tested up to: 5.6
8
  Text Domain: fast-velocity-minify
9
  License: GPLv3 or later
55
 
56
  == Changelog ==
57
 
58
+ = 3.1.3 [2021.01.10] =
59
+ * Link preload headers improvement
60
+
61
  = 3.1.2 [2021.01.09] =
62
  * Fixed a PHP notice on wp-admin
63