Jetpack Boost – Website Speed, Performance and Critical CSS - Version 0.9.15

Version Description

Download this release

Release Info

Developer danwalmsley
Plugin Icon 128x128 Jetpack Boost – Website Speed, Performance and Critical CSS
Version 0.9.15
Comparing to
See all releases

Code changes from version 0.9.14 to 0.9.15

app/modules/cdn/class-cdn.php CHANGED
@@ -301,7 +301,9 @@ class CDN extends Module {
301
  $urls[] = $asset_url;
302
 
303
  if ( isset( $script->extra['before'] ) && $script->extra['before'] ) {
304
- echo sprintf( "<script type='text/javascript'>\n%s\n</script>\n", $script->extra['before'] );
 
 
305
  }
306
  }
307
 
@@ -313,7 +315,9 @@ class CDN extends Module {
313
 
314
  foreach ( $scripts as $script ) {
315
  if ( isset( $script->extra['after'] ) && $script->extra['after'] ) {
316
- echo sprintf( "<script type='text/javascript'>\n%s\n</script>\n", $script->extra['after'] );
 
 
317
  }
318
  }
319
 
301
  $urls[] = $asset_url;
302
 
303
  if ( isset( $script->extra['before'] ) && $script->extra['before'] ) {
304
+ foreach ( (array) $script->extra['before'] as $before ) {
305
+ echo sprintf( "<script type='text/javascript'>\n%s\n</script>\n", $before );
306
+ }
307
  }
308
  }
309
 
315
 
316
  foreach ( $scripts as $script ) {
317
  if ( isset( $script->extra['after'] ) && $script->extra['after'] ) {
318
+ foreach ( (array) $script->extra['after'] as $after ) {
319
+ echo sprintf( "<script type='text/javascript'>\n%s\n</script>\n", $after );
320
+ }
321
  }
322
  }
323
 
jetpack-boost.php CHANGED
@@ -9,7 +9,7 @@
9
  * Plugin Name: Jetpack Boost
10
  * Plugin URI: https://jetpack.com/boost
11
  * Description: Boost your WordPress site's performance, from the creators of Jetpack
12
- * Version: 0.9.14
13
  * Author: Automattic, XWP
14
  * Author URI: https://automattic.com
15
  * License: GPL-2.0+
@@ -27,7 +27,7 @@ if ( ! defined( 'WPINC' ) ) {
27
  die;
28
  }
29
 
30
- define( 'JETPACK_BOOST_VERSION', '0.9.14' );
31
  define( 'JETPACK_BOOST_DIR_PATH', __DIR__ );
32
  define( 'JETPACK_BOOST_PATH', __FILE__ );
33
 
9
  * Plugin Name: Jetpack Boost
10
  * Plugin URI: https://jetpack.com/boost
11
  * Description: Boost your WordPress site's performance, from the creators of Jetpack
12
+ * Version: 0.9.15
13
  * Author: Automattic, XWP
14
  * Author URI: https://automattic.com
15
  * License: GPL-2.0+
27
  die;
28
  }
29
 
30
+ define( 'JETPACK_BOOST_VERSION', '0.9.15' );
31
  define( 'JETPACK_BOOST_DIR_PATH', __DIR__ );
32
  define( 'JETPACK_BOOST_PATH', __FILE__ );
33
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: Jetpack, WordPress.com, performance, speed, lazy, images, css, critical, j
5
  Requires at least: 5.5
6
  Tested up to: 5.6
7
  Requires PHP: 7.0
8
- Stable tag: 0.9.14
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
5
  Requires at least: 5.5
6
  Tested up to: 5.6
7
  Requires PHP: 7.0
8
+ Stable tag: 0.9.15
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit1cdc3f09fc02d7769f4d90b449b65c7e::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit6ae13929932f61d7ce3ae07010c3a6f0::getLoader();
vendor/autoload_packages.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp1cdc3f09fc02d7769f4d90b449b65c7e;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp6ae13929932f61d7ce3ae07010c3a6f0;
9
 
10
  // phpcs:ignore
11
 
vendor/composer/InstalledVersions.php CHANGED
@@ -24,8 +24,8 @@ class InstalledVersions
24
  private static $installed = array (
25
  'root' =>
26
  array (
27
- 'pretty_version' => '0.9.14',
28
- 'version' => '0.9.14.0',
29
  'aliases' =>
30
  array (
31
  ),
@@ -63,8 +63,8 @@ private static $installed = array (
63
  ),
64
  'automattic/jetpack-boost' =>
65
  array (
66
- 'pretty_version' => '0.9.14',
67
- 'version' => '0.9.14.0',
68
  'aliases' =>
69
  array (
70
  ),
24
  private static $installed = array (
25
  'root' =>
26
  array (
27
+ 'pretty_version' => '0.9.15',
28
+ 'version' => '0.9.15.0',
29
  'aliases' =>
30
  array (
31
  ),
63
  ),
64
  'automattic/jetpack-boost' =>
65
  array (
66
+ 'pretty_version' => '0.9.15',
67
+ 'version' => '0.9.15.0',
68
  'aliases' =>
69
  array (
70
  ),
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit1cdc3f09fc02d7769f4d90b449b65c7e
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit1cdc3f09fc02d7769f4d90b449b65c7e
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInit1cdc3f09fc02d7769f4d90b449b65c7e', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
29
- spl_autoload_unregister(array('ComposerAutoloaderInit1cdc3f09fc02d7769f4d90b449b65c7e', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
- call_user_func(\Composer\Autoload\ComposerStaticInit1cdc3f09fc02d7769f4d90b449b65c7e::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,19 +53,19 @@ class ComposerAutoloaderInit1cdc3f09fc02d7769f4d90b449b65c7e
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInit1cdc3f09fc02d7769f4d90b449b65c7e::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequire1cdc3f09fc02d7769f4d90b449b65c7e($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
- function composerRequire1cdc3f09fc02d7769f4d90b449b65c7e($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit6ae13929932f61d7ce3ae07010c3a6f0
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit6ae13929932f61d7ce3ae07010c3a6f0', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit6ae13929932f61d7ce3ae07010c3a6f0', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
+ call_user_func(\Composer\Autoload\ComposerStaticInit6ae13929932f61d7ce3ae07010c3a6f0::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
+ $includeFiles = Composer\Autoload\ComposerStaticInit6ae13929932f61d7ce3ae07010c3a6f0::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequire6ae13929932f61d7ce3ae07010c3a6f0($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
+ function composerRequire6ae13929932f61d7ce3ae07010c3a6f0($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit1cdc3f09fc02d7769f4d90b449b65c7e
8
  {
9
  public static $files = array (
10
  'bce4ecd6aabb2a2948e06d0e2c4ea9a6' => __DIR__ . '/..' . '/automattic/jetpack-connection/legacy/load-ixr.php',
@@ -77,10 +77,10 @@ class ComposerStaticInit1cdc3f09fc02d7769f4d90b449b65c7e
77
  public static function getInitializer(ClassLoader $loader)
78
  {
79
  return \Closure::bind(function () use ($loader) {
80
- $loader->prefixLengthsPsr4 = ComposerStaticInit1cdc3f09fc02d7769f4d90b449b65c7e::$prefixLengthsPsr4;
81
- $loader->prefixDirsPsr4 = ComposerStaticInit1cdc3f09fc02d7769f4d90b449b65c7e::$prefixDirsPsr4;
82
- $loader->prefixesPsr0 = ComposerStaticInit1cdc3f09fc02d7769f4d90b449b65c7e::$prefixesPsr0;
83
- $loader->classMap = ComposerStaticInit1cdc3f09fc02d7769f4d90b449b65c7e::$classMap;
84
 
85
  }, null, ClassLoader::class);
86
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit6ae13929932f61d7ce3ae07010c3a6f0
8
  {
9
  public static $files = array (
10
  'bce4ecd6aabb2a2948e06d0e2c4ea9a6' => __DIR__ . '/..' . '/automattic/jetpack-connection/legacy/load-ixr.php',
77
  public static function getInitializer(ClassLoader $loader)
78
  {
79
  return \Closure::bind(function () use ($loader) {
80
+ $loader->prefixLengthsPsr4 = ComposerStaticInit6ae13929932f61d7ce3ae07010c3a6f0::$prefixLengthsPsr4;
81
+ $loader->prefixDirsPsr4 = ComposerStaticInit6ae13929932f61d7ce3ae07010c3a6f0::$prefixDirsPsr4;
82
+ $loader->prefixesPsr0 = ComposerStaticInit6ae13929932f61d7ce3ae07010c3a6f0::$prefixesPsr0;
83
+ $loader->classMap = ComposerStaticInit6ae13929932f61d7ce3ae07010c3a6f0::$classMap;
84
 
85
  }, null, ClassLoader::class);
86
  }
vendor/composer/installed.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php return array (
2
  'root' =>
3
  array (
4
- 'pretty_version' => '0.9.14',
5
- 'version' => '0.9.14.0',
6
  'aliases' =>
7
  array (
8
  ),
@@ -40,8 +40,8 @@
40
  ),
41
  'automattic/jetpack-boost' =>
42
  array (
43
- 'pretty_version' => '0.9.14',
44
- 'version' => '0.9.14.0',
45
  'aliases' =>
46
  array (
47
  ),
1
  <?php return array (
2
  'root' =>
3
  array (
4
+ 'pretty_version' => '0.9.15',
5
+ 'version' => '0.9.15.0',
6
  'aliases' =>
7
  array (
8
  ),
40
  ),
41
  'automattic/jetpack-boost' =>
42
  array (
43
+ 'pretty_version' => '0.9.15',
44
+ 'version' => '0.9.15.0',
45
  'aliases' =>
46
  array (
47
  ),
vendor/composer/jetpack_autoload_classmap.php CHANGED
@@ -7,27 +7,27 @@ $baseDir = dirname($vendorDir);
7
 
8
  return array(
9
  'Automattic\\Jetpack_Boost\\Tests\\Base_Test_Case' => array(
10
- 'version' => '0.9.14.0',
11
  'path' => $baseDir . '/tests/php/class-base-test-case.php'
12
  ),
13
  'Automattic\\Jetpack_Boost\\Tests\\Modules\\Critical_CSS\\WP_Test_Critical_Css' => array(
14
- 'version' => '0.9.14.0',
15
  'path' => $baseDir . '/tests/php/modules/critical-css/test-class-critical-css.php'
16
  ),
17
  'Automattic\\Jetpack_Boost\\Tests\\Lib\\WP_Test_Api_Connect' => array(
18
- 'version' => '0.9.14.0',
19
  'path' => $baseDir . '/tests/php/lib/test-class-api-connect.php'
20
  ),
21
  'Automattic\\Jetpack_Boost\\Tests\\Lib\\WP_Test_Viewport' => array(
22
- 'version' => '0.9.14.0',
23
  'path' => $baseDir . '/tests/php/lib/test-class-viewport.php'
24
  ),
25
  'Automattic\\Jetpack_Boost\\Tests\\Lib\\WP_Test_Minify' => array(
26
- 'version' => '0.9.14.0',
27
  'path' => $baseDir . '/tests/php/lib/test-class-minify.php'
28
  ),
29
  'Automattic\\Jetpack_Boost\\Tests\\Lib\\WP_Test_Url' => array(
30
- 'version' => '0.9.14.0',
31
  'path' => $baseDir . '/tests/php/lib/test-class-url.php'
32
  ),
33
  'Automattic\\Jetpack\\Autoloader\\AutoloadFileWriter' => array(
7
 
8
  return array(
9
  'Automattic\\Jetpack_Boost\\Tests\\Base_Test_Case' => array(
10
+ 'version' => '0.9.15.0',
11
  'path' => $baseDir . '/tests/php/class-base-test-case.php'
12
  ),
13
  'Automattic\\Jetpack_Boost\\Tests\\Modules\\Critical_CSS\\WP_Test_Critical_Css' => array(
14
+ 'version' => '0.9.15.0',
15
  'path' => $baseDir . '/tests/php/modules/critical-css/test-class-critical-css.php'
16
  ),
17
  'Automattic\\Jetpack_Boost\\Tests\\Lib\\WP_Test_Api_Connect' => array(
18
+ 'version' => '0.9.15.0',
19
  'path' => $baseDir . '/tests/php/lib/test-class-api-connect.php'
20
  ),
21
  'Automattic\\Jetpack_Boost\\Tests\\Lib\\WP_Test_Viewport' => array(
22
+ 'version' => '0.9.15.0',
23
  'path' => $baseDir . '/tests/php/lib/test-class-viewport.php'
24
  ),
25
  'Automattic\\Jetpack_Boost\\Tests\\Lib\\WP_Test_Minify' => array(
26
+ 'version' => '0.9.15.0',
27
  'path' => $baseDir . '/tests/php/lib/test-class-minify.php'
28
  ),
29
  'Automattic\\Jetpack_Boost\\Tests\\Lib\\WP_Test_Url' => array(
30
+ 'version' => '0.9.15.0',
31
  'path' => $baseDir . '/tests/php/lib/test-class-url.php'
32
  ),
33
  'Automattic\\Jetpack\\Autoloader\\AutoloadFileWriter' => array(
vendor/jetpack-autoloader/class-autoloader-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp1cdc3f09fc02d7769f4d90b449b65c7e;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp6ae13929932f61d7ce3ae07010c3a6f0;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-autoloader-locator.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp1cdc3f09fc02d7769f4d90b449b65c7e;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp6ae13929932f61d7ce3ae07010c3a6f0;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-autoloader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp1cdc3f09fc02d7769f4d90b449b65c7e;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp6ae13929932f61d7ce3ae07010c3a6f0;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-container.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp1cdc3f09fc02d7769f4d90b449b65c7e;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp6ae13929932f61d7ce3ae07010c3a6f0;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-hook-manager.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp1cdc3f09fc02d7769f4d90b449b65c7e;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp6ae13929932f61d7ce3ae07010c3a6f0;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-latest-autoloader-guard.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp1cdc3f09fc02d7769f4d90b449b65c7e;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp6ae13929932f61d7ce3ae07010c3a6f0;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-manifest-reader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp1cdc3f09fc02d7769f4d90b449b65c7e;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp6ae13929932f61d7ce3ae07010c3a6f0;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-path-processor.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp1cdc3f09fc02d7769f4d90b449b65c7e;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp6ae13929932f61d7ce3ae07010c3a6f0;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-plugin-locator.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp1cdc3f09fc02d7769f4d90b449b65c7e;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp6ae13929932f61d7ce3ae07010c3a6f0;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-plugins-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp1cdc3f09fc02d7769f4d90b449b65c7e;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp6ae13929932f61d7ce3ae07010c3a6f0;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-version-loader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp1cdc3f09fc02d7769f4d90b449b65c7e;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp6ae13929932f61d7ce3ae07010c3a6f0;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-version-selector.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp1cdc3f09fc02d7769f4d90b449b65c7e;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp6ae13929932f61d7ce3ae07010c3a6f0;
9
 
10
  // phpcs:ignore
11