From e41e9b5a09518c336d35c74987aa2f9d4f0b1c84 Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Wed, 11 Sep 2019 11:38:21 +0200 Subject: [PATCH] Bump version numbers to 1.0.1, and update changelog. --- composer.json | 2 +- native-lazyload.php | 2 +- package.json | 4 ++-- readme.txt | 8 +++++++- src/Context.php | 2 +- 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index d47cf16..7ce08a4 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "google/native-lazyload", "description": "Lazy-loads media using the native browser feature.", - "version": "1.0.0", + "version": "1.0.1", "license": "Apache-2.0", "type": "wordpress-plugin", "keywords": [ diff --git a/native-lazyload.php b/native-lazyload.php index cf9a1aa..aa165fd 100644 --- a/native-lazyload.php +++ b/native-lazyload.php @@ -11,7 +11,7 @@ * Plugin Name: Native Lazyload * Plugin URI: https://wordpress.org/plugins/native-lazyload/ * Description: Lazy-loads media using the native browser feature. - * Version: 1.0.0 + * Version: 1.0.1 * Author: Google * Author URI: https://opensource.google.com * License: Apache License 2.0 diff --git a/package.json b/package.json index db87250..f60df0b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "native-lazyload", - "version": "1.0.0", + "version": "1.0.1", "description": "Lazy-loads media using the native browser feature.", "author": "Google", "license": "Apache-2.0", @@ -31,4 +31,4 @@ "build": "webpack -p --mode=production --config='./webpack.config.js' && copyfiles -f ./assets/images/src/* ./assets/images", "lint": "eslint ." } -} \ No newline at end of file +} diff --git a/readme.txt b/readme.txt index 1b686b9..2d79296 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Contributors: google, flixos90 Requires at least: 4.7 Tested up to: 5.2 Requires PHP: 7.0 -Stable tag: 1.0.0 +Stable tag: 1.0.1 License: Apache License 2.0 License URI: https://www.apache.org/licenses/LICENSE-2.0 Tags: lazyload, lazy, load, native, loading, images, iframes @@ -64,6 +64,12 @@ You can also contribute to the plugin by translating it. Simply visit [translate == Changelog == += 1.0.1 = + +* Improve compatibility with other plugins by using more specific class and only adding it for JS fallback. +* Run lazy-load script on `DOMContentLoaded` when necessary to improve compatibility with plugins like Autoptimize. +* Do not transform elements inside an AJAX response due to lack of predictability of the context and script execution. + = 1.0.0 = * Initial release diff --git a/src/Context.php b/src/Context.php index ef9ad42..d88bcbb 100644 --- a/src/Context.php +++ b/src/Context.php @@ -74,7 +74,7 @@ public function url( string $relative_path = '/' ) : string { /** * Checks whether the current request is an AJAX request. * - * @since 1.0.0 + * @since 1.0.1 * * @return bool True if an AJAX request, false otherwise. */