From 18ddd243c86086c3c07c0995d95147c2e4d4449a Mon Sep 17 00:00:00 2001 From: shinsenter <2082119+shinsenter@users.noreply.github.com> Date: Mon, 11 Mar 2024 15:22:00 +0900 Subject: [PATCH] For 2.8.0 --- .docker/docker-compose.yml | 2 +- .gitignore | 1 + .php-cs-fixer.php | 10 +- README.md | 2 +- README.txt | 4 +- VERSION | 2 +- admin/class-defer-wordpress-admin.php | 4 +- admin/index.php | 4 +- admin/js/defer-wordpress-admin.js | 2 +- .../defer-wordpress-admin-display.php | 129 ++++++------------ composer.lock | 4 +- defer-wordpress.php | 10 +- includes/class-defer-wordpress-activator.php | 4 +- .../class-defer-wordpress-deactivator.php | 4 +- includes/class-defer-wordpress-i18n.php | 4 +- includes/class-defer-wordpress-loader.php | 4 +- includes/class-defer-wordpress.php | 4 +- includes/index.php | 4 +- index.php | 4 +- package-lock.json | 11 +- package.json | 2 +- public/class-defer-wordpress-public.php | 4 +- public/index.php | 4 +- uninstall.php | 4 +- 24 files changed, 89 insertions(+), 138 deletions(-) diff --git a/.docker/docker-compose.yml b/.docker/docker-compose.yml index 8c8fb14..fb331ad 100644 --- a/.docker/docker-compose.yml +++ b/.docker/docker-compose.yml @@ -15,7 +15,7 @@ services: hostname: defer-wp-test depends_on: - mariadb - image: wordpress:php5.6 + image: shinsenter/wordpress:php${PHP_VERSION:-7.4} ports: - "8000:80" volumes: diff --git a/.gitignore b/.gitignore index 87f6e73..d5e36ac 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ wp-content/plugins/hello.php /readme.html /sitemap.xml /sitemap.xml.gz +.DS_Store .php_cs.cache composer.phar /.old/ diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 25f3a17..43aca23 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -3,14 +3,14 @@ /** * 🚀 A WordPress plugin that focuses on minimizing payload size of HTML document * and optimizing processing on the browser when rendering the WordPress page. - * (c) 2021-2023 SHIN Company + * (c) 2021-2024 SHIN Company * * PHP Version >=5.6 * * @category Web_Performance_Optimization * @package defer-wordpress * @author Mai Nhut Tan - * @copyright 2021-2023 SHIN Company + * @copyright 2021-2024 SHIN Company * @license https://code.shin.company/defer-wordpress/blob/master/LICENSE GPL-2.0 * @link https://code.shin.company/defer-wordpress * @see https://code.shin.company/defer-wordpress/blob/master/README.md @@ -19,14 +19,14 @@ $header = <<<'EOF' 🚀 A WordPress plugin that focuses on minimizing payload size of HTML document and optimizing processing on the browser when rendering the WordPress page. -(c) 2021-2023 SHIN Company +(c) 2021-2024 SHIN Company PHP Version >=5.6 @category Web_Performance_Optimization @package defer-wordpress @author Mai Nhut Tan -@copyright 2021-2023 SHIN Company +@copyright 2021-2024 SHIN Company @license https://code.shin.company/defer-wordpress/blob/master/LICENSE GPL-2.0 @link https://code.shin.company/defer-wordpress @see https://code.shin.company/defer-wordpress/blob/master/README.md @@ -65,7 +65,7 @@ ]; $finder = \PhpCsFixer\Finder::create() - ->in(dirname(__DIR__)) + ->in(__DIR__) ->name('*.php') ->exclude('.dist') ->exclude('.docker') diff --git a/README.md b/README.md index aa4efd9..21c1e50 100644 --- a/README.md +++ b/README.md @@ -71,4 +71,4 @@ This plugin also works perfectly on popular browsers, including Internet Explore Released under the GNU General Public License v2 license. https://code.shin.company/defer-wordpress/blob/master/LICENSE -Copyright (c) 2019 Mai Nhut Tan <[shin@shin.company](mailto:shin@shin.company)> +Copyright (c) 2024 Mai Nhut Tan <[shin@shin.company](mailto:shin@shin.company)> diff --git a/README.txt b/README.txt index 78bf3b5..5226a4f 100755 --- a/README.txt +++ b/README.txt @@ -1,7 +1,7 @@ === A faster website! (aka defer.js) === Contributors: shinsenter Donate link: https://www.paypal.me/shinsenter -Tags: defer.js,optimization,core-web-vitals,lazyload,loading-lazy,lazy-loading,lazyload-image,lazyload-video,lazyload-font,lazyload-js,lazyload-css,lazyload-wordpress,lazyload-facebook,lazyload-youtube,site-performance,speed,pagespeed,page-speed,html-minify,shinsenter +Tags: lazyload,lazy-load,defer.js,core-web-vitals,pagespeed,page-speed,html-minify Requires at least: 4.0 Tested up to: 6.3.1 Stable tag: trunk @@ -101,7 +101,7 @@ Keep up-to-date with new releases: Released under the GNU General Public License v2 license. [https://code.shin.company/defer-wordpress/blob/master/LICENSE](https://code.shin.company/defer-wordpress/blob/master/LICENSE) -Copyright (c) 2019 Mai Nhut Tan <[shin@shin.company](mailto:shin@shin.company)> +Copyright (c) 2024 Mai Nhut Tan <[shin@shin.company](mailto:shin@shin.company)> == Installation == diff --git a/VERSION b/VERSION index 914ec96..6533b66 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.6.0 \ No newline at end of file +2.8.0 \ No newline at end of file diff --git a/admin/class-defer-wordpress-admin.php b/admin/class-defer-wordpress-admin.php index a76c2c7..e65ac5e 100644 --- a/admin/class-defer-wordpress-admin.php +++ b/admin/class-defer-wordpress-admin.php @@ -3,14 +3,14 @@ /** * 🚀 A WordPress plugin that focuses on minimizing payload size of HTML document * and optimizing processing on the browser when rendering the WordPress page. - * (c) 2021-2023 SHIN Company + * (c) 2021-2024 SHIN Company * * PHP Version >=5.6 * * @category Web_Performance_Optimization * @package defer-wordpress * @author Mai Nhut Tan - * @copyright 2021-2023 SHIN Company + * @copyright 2021-2024 SHIN Company * @license https://code.shin.company/defer-wordpress/blob/master/LICENSE GPL-2.0 * @link https://code.shin.company/defer-wordpress * @see https://code.shin.company/defer-wordpress/blob/master/README.md diff --git a/admin/index.php b/admin/index.php index d838916..7ffc412 100644 --- a/admin/index.php +++ b/admin/index.php @@ -3,14 +3,14 @@ /** * 🚀 A WordPress plugin that focuses on minimizing payload size of HTML document * and optimizing processing on the browser when rendering the WordPress page. - * (c) 2021-2023 SHIN Company + * (c) 2021-2024 SHIN Company * * PHP Version >=5.6 * * @category Web_Performance_Optimization * @package defer-wordpress * @author Mai Nhut Tan - * @copyright 2021-2023 SHIN Company + * @copyright 2021-2024 SHIN Company * @license https://code.shin.company/defer-wordpress/blob/master/LICENSE GPL-2.0 * @link https://code.shin.company/defer-wordpress * @see https://code.shin.company/defer-wordpress/blob/master/README.md diff --git a/admin/js/defer-wordpress-admin.js b/admin/js/defer-wordpress-admin.js index dfd822b..3aa23e0 100755 --- a/admin/js/defer-wordpress-admin.js +++ b/admin/js/defer-wordpress-admin.js @@ -1 +1 @@ -!function(e,n){var i=Function(),o=(n.log||i).bind(n);"object"==typeof e.chrome&&-1==e.navigator.userAgent.indexOf("Trident/")&&o("%c shinsenter %c defer.js ","font-size:16px;background:#2a313c;padding:2px;border-radius:4px 0 0 4px;color:#fff","font-size:16px;background:#e61e25;padding:2px;border-radius:0 4px 4px 0;color:#fff"),o(["This page was optimized with defer.js","(c) 2019 Mai Nhut Tan ","Wordpress: https://wordpress.org/plugins/shins-pageload-magic/","Github: https://code.shin.company/defer.js/"].join("\n"))}(window,console) \ No newline at end of file +!function(e,n){var i=Function(),o=(n.log||i).bind(n);"object"==typeof e.chrome&&-1==e.navigator.userAgent.indexOf("Trident/")&&o("%c shinsenter %c defer.js ","font-size:16px;background:#2a313c;padding:2px;border-radius:4px 0 0 4px;color:#fff","font-size:16px;background:#e61e25;padding:2px;border-radius:0 4px 4px 0;color:#fff"),o(["This page was optimized with defer.js","(c) 2024 Mai Nhut Tan ","Wordpress: https://wordpress.org/plugins/shins-pageload-magic/","Github: https://code.shin.company/defer.js/"].join("\n"))}(window,console) \ No newline at end of file diff --git a/admin/partials/defer-wordpress-admin-display.php b/admin/partials/defer-wordpress-admin-display.php index c1722ac..6dba531 100644 --- a/admin/partials/defer-wordpress-admin-display.php +++ b/admin/partials/defer-wordpress-admin-display.php @@ -3,14 +3,14 @@ /** * 🚀 A WordPress plugin that focuses on minimizing payload size of HTML document * and optimizing processing on the browser when rendering the WordPress page. - * (c) 2021-2023 SHIN Company . + * (c) 2021-2024 SHIN Company . * * PHP Version >=5.6 * * @category Web_Performance_Optimization * * @author Mai Nhut Tan - * @copyright 2021-2023 SHIN Company + * @copyright 2021-2024 SHIN Company * @license https://code.shin.company/defer-wordpress/blob/master/LICENSE GNU * * @see https://code.shin.company/defer-wordpress @@ -34,15 +34,15 @@ + $err = false === $save_settings ? 'error' : 'updated'; ?>

+ } ?>
@@ -72,10 +72,7 @@
- - name="" - id="deferjs_enable_preloading"> + name="" id="deferjs_enable_preloading"> Default: .

Preload key requests such as stylesheets or external scripts.
@@ -91,10 +88,7 @@

- - name="" - id="deferjs_enable_dns_prefetch"> + name="" id="deferjs_enable_dns_prefetch"> Default: .

DNS resolution time can lead to a significant amount of user perceived latency. Enabling DNS prefetch saves about 200 milliseconds in browser navigation.
@@ -110,10 +104,7 @@

- - name="" - id="deferjs_fix_render_blocking"> + name="" id="deferjs_fix_render_blocking"> Default: .

This option moves all stylesheets to bottom of the head tag, and moves script tags to bottom of the body tag.
@@ -129,10 +120,7 @@

- - name="" - id="deferjs_minify_output_html"> + name="" id="deferjs_minify_output_html"> Default: .

Minify HTML output.
@@ -163,10 +151,7 @@

- - name="" - id="deferjs_optimize_css"> + name="" id="deferjs_optimize_css"> Default: .

Turn on optimization for stylesheets. This optimization applies to style and link[rel="stylesheet"] tags.
@@ -183,10 +168,7 @@

- - name="" - id="deferjs_optimize_scripts"> + name="" id="deferjs_optimize_scripts"> Default: .

Optimize script tags (both inline and external scripts). Note: The library only minify for inline script tags.
@@ -203,10 +185,7 @@

- - name="" - id="deferjs_optimize_images"> + name="" id="deferjs_optimize_images"> Default: .

Optimize img, picture, video, audio and source tags.
@@ -223,10 +202,7 @@

- - name="" - id="deferjs_optimize_iframes"> + name="" id="deferjs_optimize_iframes"> Default: .

Optimize iframe, frame, embed tags.
@@ -243,10 +219,7 @@

- - name="" - id="deferjs_optimize_background"> + name="" id="deferjs_optimize_background"> Default: .

Optimize tags that containing CSS for loading images from external sources.
@@ -264,10 +237,7 @@

- - name="" - id="deferjs_optimize_fallback"> + name="" id="deferjs_optimize_fallback"> Default: .

Create <noscript> tags so lazy-loaded elements can still display even when the browser doesn't have javascript enabled.
@@ -299,10 +269,7 @@

- - name="" - id="deferjs_optimize_anchors"> + name="" id="deferjs_optimize_anchors"> Default: .

Fix unsafe links to cross-origin destinations.
@@ -319,10 +286,7 @@

- - name="" - id="deferjs_defer_third_party"> + name="" id="deferjs_defer_third_party"> Default: .

Turn on optimization for third-party resources such as web fonts.
@@ -339,10 +303,7 @@

- - name="" - id="deferjs_use_css_fadein_effects"> + name="" id="deferjs_use_css_fadein_effects"> Default: .

Apply fade-in animation to tags after being lazy-loaded.

@@ -355,10 +316,7 @@
- - name="" - id="deferjs_use_color_placeholder"> + name="" id="deferjs_use_color_placeholder"> Default: .

Use random background colors for images to be lazy-loaded.

@@ -370,10 +328,7 @@
- +

Default: .

Default placeholder for lazy-loaded IMG tags.

@@ -386,10 +341,7 @@
- +

Default: .

Default placeholder for lazy-loaded IFRAME tags.

@@ -402,9 +354,7 @@
- +

If you found this plugin useful, please help me share it with other people by appending a little information at the bottom of your HTML. This information does not affect your website at all.

@@ -430,9 +380,7 @@
- +

Default: leave it empty.

Skip lazy-loading for tags containing any of these CSS class names. Each class name is in one line.

Caution: checking many CSS class names for each element will significantly reduce the performance of this plugin.

@@ -445,9 +393,7 @@
- +

Default: leave it empty.

Skip lazy-loading for tags matching any of these CSS selectors. Each CSS selector is in one line.
Read this article for more details.

@@ -490,10 +436,7 @@
- +

Default: .

This library polyfills the native IntersectionObserver API in unsupporting browsers.
See the API documentation for usage information.

@@ -524,11 +467,11 @@

🥇 A super small, super efficient library that helps you lazy load almost everything like images, video, audio, iframes as well as stylesheets, and JavaScript.

GitHub - CodeFactor

-

GitHub Release Date + GitHub Release Date npm npm bundle size - jsDelivr hits (GitHub)

+ jsDelivr hits (GitHub) +

Support my work

@@ -543,18 +486,22 @@

Keep in touch


Released under the MIT license. - /LICENSE

-

Copyright (c) 2021 Mai Nhut Tan <shin@shin.company>.

+ /LICENSE +

+

Copyright (c) Mai Nhut Tan <shin@shin.company>.

From Vietnam 🇻🇳 with love.

- + \ No newline at end of file diff --git a/composer.lock b/composer.lock index a29cfea..62a6b76 100644 --- a/composer.lock +++ b/composer.lock @@ -152,10 +152,10 @@ }, { "name": "shinsenter/defer.php", - "version": "2.6.0", + "version": "2.5.0", "source": { "type": "git", - "url": "https://code.shin.company/defer.php.git", + "url": "https://github.com/shinsenter/defer.php.git", "reference": "9e09debab85b3087552068ab5d934a63dd30d097" }, "dist": { diff --git a/defer-wordpress.php b/defer-wordpress.php index 99bb8ce..0c5fba1 100644 --- a/defer-wordpress.php +++ b/defer-wordpress.php @@ -3,14 +3,14 @@ /** * 🚀 A WordPress plugin that focuses on minimizing payload size of HTML document * and optimizing processing on the browser when rendering the WordPress page. - * (c) 2021-2023 SHIN Company + * (c) 2021-2024 SHIN Company * * PHP Version >=5.6 * * @category Web_Performance_Optimization * @package defer-wordpress * @author Mai Nhut Tan - * @copyright 2021-2023 SHIN Company + * @copyright 2021-2024 SHIN Company * @license https://code.shin.company/defer-wordpress/blob/master/LICENSE GPL-2.0 * @link https://code.shin.company/defer-wordpress * @see https://code.shin.company/defer-wordpress/blob/master/README.md @@ -28,7 +28,7 @@ * Plugin Name: A faster website! (aka defer.js) * Plugin URI: https://wordpress.org/plugins/shins-pageload-magic/ * Description: 💯 Latest web technologies in website optimization by experienced web experts. 🔰 Very easy to use. - * Version: 2.6.0 + * Version: 2.8.0 * Author: Mai Nhut Tan * Author URI: https://code.shin.company/ * License: GPL-2.0+ @@ -44,7 +44,7 @@ if (!defined('DEFER_WP_PLUGIN_VERSION')) { define('DEFER_WP_PLUGIN_BASE', plugin_basename(__FILE__)); define('DEFER_WP_PLUGIN_NAME', 'defer-wordpress'); - define('DEFER_WP_PLUGIN_VERSION', '2.6.0'); + define('DEFER_WP_PLUGIN_VERSION', '2.8.0'); define('DEFER_WP_PLUGIN_PREFIX', DEFER_WP_PLUGIN_NAME . '_'); define('DEFER_WP_PLUGIN_HOOK', 'plugin_action_links_' . DEFER_WP_PLUGIN_BASE); @@ -58,7 +58,7 @@ $has_deferjs = file_exists(__DIR__ . '/public/lib/defer_plus.min.js'); define('DEFER_WP_SRC_DEFERJS_CDN', $has_deferjs ? __DIR__ . '/public/lib/defer_plus.min.js' - : 'https://cdn.jsdelivr.net/npm/@shinsenter/defer.js@2.6.0/dist/defer_plus.min.js'); + : 'https://cdn.jsdelivr.net/npm/@shinsenter/defer.js@3.7.0/dist/defer_plus.min.js'); $has_polyfill = file_exists(__DIR__ . '/public/lib/polyfill.min.js'); define('DEFER_WP_SRC_POLYFILL_CDN', $has_polyfill diff --git a/includes/class-defer-wordpress-activator.php b/includes/class-defer-wordpress-activator.php index cb7e62e..f70ff7f 100644 --- a/includes/class-defer-wordpress-activator.php +++ b/includes/class-defer-wordpress-activator.php @@ -3,14 +3,14 @@ /** * 🚀 A WordPress plugin that focuses on minimizing payload size of HTML document * and optimizing processing on the browser when rendering the WordPress page. - * (c) 2021-2023 SHIN Company + * (c) 2021-2024 SHIN Company * * PHP Version >=5.6 * * @category Web_Performance_Optimization * @package defer-wordpress * @author Mai Nhut Tan - * @copyright 2021-2023 SHIN Company + * @copyright 2021-2024 SHIN Company * @license https://code.shin.company/defer-wordpress/blob/master/LICENSE GPL-2.0 * @link https://code.shin.company/defer-wordpress * @see https://code.shin.company/defer-wordpress/blob/master/README.md diff --git a/includes/class-defer-wordpress-deactivator.php b/includes/class-defer-wordpress-deactivator.php index f11d3db..959b7e7 100644 --- a/includes/class-defer-wordpress-deactivator.php +++ b/includes/class-defer-wordpress-deactivator.php @@ -3,14 +3,14 @@ /** * 🚀 A WordPress plugin that focuses on minimizing payload size of HTML document * and optimizing processing on the browser when rendering the WordPress page. - * (c) 2021-2023 SHIN Company + * (c) 2021-2024 SHIN Company * * PHP Version >=5.6 * * @category Web_Performance_Optimization * @package defer-wordpress * @author Mai Nhut Tan - * @copyright 2021-2023 SHIN Company + * @copyright 2021-2024 SHIN Company * @license https://code.shin.company/defer-wordpress/blob/master/LICENSE GPL-2.0 * @link https://code.shin.company/defer-wordpress * @see https://code.shin.company/defer-wordpress/blob/master/README.md diff --git a/includes/class-defer-wordpress-i18n.php b/includes/class-defer-wordpress-i18n.php index f3eb4c5..b1f9175 100644 --- a/includes/class-defer-wordpress-i18n.php +++ b/includes/class-defer-wordpress-i18n.php @@ -3,14 +3,14 @@ /** * 🚀 A WordPress plugin that focuses on minimizing payload size of HTML document * and optimizing processing on the browser when rendering the WordPress page. - * (c) 2021-2023 SHIN Company + * (c) 2021-2024 SHIN Company * * PHP Version >=5.6 * * @category Web_Performance_Optimization * @package defer-wordpress * @author Mai Nhut Tan - * @copyright 2021-2023 SHIN Company + * @copyright 2021-2024 SHIN Company * @license https://code.shin.company/defer-wordpress/blob/master/LICENSE GPL-2.0 * @link https://code.shin.company/defer-wordpress * @see https://code.shin.company/defer-wordpress/blob/master/README.md diff --git a/includes/class-defer-wordpress-loader.php b/includes/class-defer-wordpress-loader.php index d5bf789..6cc0208 100644 --- a/includes/class-defer-wordpress-loader.php +++ b/includes/class-defer-wordpress-loader.php @@ -3,14 +3,14 @@ /** * 🚀 A WordPress plugin that focuses on minimizing payload size of HTML document * and optimizing processing on the browser when rendering the WordPress page. - * (c) 2021-2023 SHIN Company + * (c) 2021-2024 SHIN Company * * PHP Version >=5.6 * * @category Web_Performance_Optimization * @package defer-wordpress * @author Mai Nhut Tan - * @copyright 2021-2023 SHIN Company + * @copyright 2021-2024 SHIN Company * @license https://code.shin.company/defer-wordpress/blob/master/LICENSE GPL-2.0 * @link https://code.shin.company/defer-wordpress * @see https://code.shin.company/defer-wordpress/blob/master/README.md diff --git a/includes/class-defer-wordpress.php b/includes/class-defer-wordpress.php index d0304dc..1b37e7a 100644 --- a/includes/class-defer-wordpress.php +++ b/includes/class-defer-wordpress.php @@ -3,14 +3,14 @@ /** * 🚀 A WordPress plugin that focuses on minimizing payload size of HTML document * and optimizing processing on the browser when rendering the WordPress page. - * (c) 2021-2023 SHIN Company + * (c) 2021-2024 SHIN Company * * PHP Version >=5.6 * * @category Web_Performance_Optimization * @package defer-wordpress * @author Mai Nhut Tan - * @copyright 2021-2023 SHIN Company + * @copyright 2021-2024 SHIN Company * @license https://code.shin.company/defer-wordpress/blob/master/LICENSE GPL-2.0 * @link https://code.shin.company/defer-wordpress * @see https://code.shin.company/defer-wordpress/blob/master/README.md diff --git a/includes/index.php b/includes/index.php index d838916..7ffc412 100644 --- a/includes/index.php +++ b/includes/index.php @@ -3,14 +3,14 @@ /** * 🚀 A WordPress plugin that focuses on minimizing payload size of HTML document * and optimizing processing on the browser when rendering the WordPress page. - * (c) 2021-2023 SHIN Company + * (c) 2021-2024 SHIN Company * * PHP Version >=5.6 * * @category Web_Performance_Optimization * @package defer-wordpress * @author Mai Nhut Tan - * @copyright 2021-2023 SHIN Company + * @copyright 2021-2024 SHIN Company * @license https://code.shin.company/defer-wordpress/blob/master/LICENSE GPL-2.0 * @link https://code.shin.company/defer-wordpress * @see https://code.shin.company/defer-wordpress/blob/master/README.md diff --git a/index.php b/index.php index d838916..7ffc412 100644 --- a/index.php +++ b/index.php @@ -3,14 +3,14 @@ /** * 🚀 A WordPress plugin that focuses on minimizing payload size of HTML document * and optimizing processing on the browser when rendering the WordPress page. - * (c) 2021-2023 SHIN Company + * (c) 2021-2024 SHIN Company * * PHP Version >=5.6 * * @category Web_Performance_Optimization * @package defer-wordpress * @author Mai Nhut Tan - * @copyright 2021-2023 SHIN Company + * @copyright 2021-2024 SHIN Company * @license https://code.shin.company/defer-wordpress/blob/master/LICENSE GPL-2.0 * @link https://code.shin.company/defer-wordpress * @see https://code.shin.company/defer-wordpress/blob/master/README.md diff --git a/package-lock.json b/package-lock.json index 6a0079f..808658b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,13 +7,13 @@ "name": "shinsenter/defer-wordpress", "license": "GPL-2.0", "dependencies": { - "@shinsenter/defer.js": "^3.6.0" + "@shinsenter/defer.js": "^3.7.0" } }, "node_modules/@shinsenter/defer.js": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/@shinsenter/defer.js/-/defer.js-3.6.0.tgz", - "integrity": "sha512-0Wz3So1Q/sznb4xsb1CejDIV7BlXFCfbC96CrgA8EhUbqLmAaIQOsUChH5RIpht6xArNTldf9tvSwqCF+i/ztA==", + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@shinsenter/defer.js/-/defer.js-3.7.0.tgz", + "integrity": "sha512-JrsXWuo9gYZFIrykZh6KIFShp7Hityr+EW/n1+jxtWsHm4s38ihf8Vx9dqiNFxSpJEo1CKac4GCTX+TaYg/euw==", "funding": [ { "type": "github", @@ -27,6 +27,9 @@ "type": "patreon", "url": "https://www.patreon.com/appseeds" } + ], + "workspaces": [ + "dist/" ] } } diff --git a/package.json b/package.json index 844902d..752aa00 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "author": "Mai Nhut Tan ", "license": "GPL-2.0", "dependencies": { - "@shinsenter/defer.js": "^3.6.0" + "@shinsenter/defer.js": "^3.7.0" }, "repository": { "type": "git", diff --git a/public/class-defer-wordpress-public.php b/public/class-defer-wordpress-public.php index 38981b9..8d57a34 100644 --- a/public/class-defer-wordpress-public.php +++ b/public/class-defer-wordpress-public.php @@ -3,14 +3,14 @@ /** * 🚀 A WordPress plugin that focuses on minimizing payload size of HTML document * and optimizing processing on the browser when rendering the WordPress page. - * (c) 2021-2023 SHIN Company + * (c) 2021-2024 SHIN Company * * PHP Version >=5.6 * * @category Web_Performance_Optimization * @package defer-wordpress * @author Mai Nhut Tan - * @copyright 2021-2023 SHIN Company + * @copyright 2021-2024 SHIN Company * @license https://code.shin.company/defer-wordpress/blob/master/LICENSE GPL-2.0 * @link https://code.shin.company/defer-wordpress * @see https://code.shin.company/defer-wordpress/blob/master/README.md diff --git a/public/index.php b/public/index.php index d838916..7ffc412 100644 --- a/public/index.php +++ b/public/index.php @@ -3,14 +3,14 @@ /** * 🚀 A WordPress plugin that focuses on minimizing payload size of HTML document * and optimizing processing on the browser when rendering the WordPress page. - * (c) 2021-2023 SHIN Company + * (c) 2021-2024 SHIN Company * * PHP Version >=5.6 * * @category Web_Performance_Optimization * @package defer-wordpress * @author Mai Nhut Tan - * @copyright 2021-2023 SHIN Company + * @copyright 2021-2024 SHIN Company * @license https://code.shin.company/defer-wordpress/blob/master/LICENSE GPL-2.0 * @link https://code.shin.company/defer-wordpress * @see https://code.shin.company/defer-wordpress/blob/master/README.md diff --git a/uninstall.php b/uninstall.php index 7f1d2f0..aa7f10b 100644 --- a/uninstall.php +++ b/uninstall.php @@ -3,14 +3,14 @@ /** * 🚀 A WordPress plugin that focuses on minimizing payload size of HTML document * and optimizing processing on the browser when rendering the WordPress page. - * (c) 2021-2023 SHIN Company + * (c) 2021-2024 SHIN Company * * PHP Version >=5.6 * * @category Web_Performance_Optimization * @package defer-wordpress * @author Mai Nhut Tan - * @copyright 2021-2023 SHIN Company + * @copyright 2021-2024 SHIN Company * @license https://code.shin.company/defer-wordpress/blob/master/LICENSE GPL-2.0 * @link https://code.shin.company/defer-wordpress * @see https://code.shin.company/defer-wordpress/blob/master/README.md