diff --git a/changelog.txt b/changelog.txt
index eecb8c2..76503ba 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -1,7 +1,19 @@
== Changelog ==
+= 1.4.1 =
+* WordPress 7.0 compatibility: tested up to 7.0; requires WordPress 6.0+ and PHP 7.4+.
+* Fix undefined $is_s3_host variable when rewriting S3 image URLs.
+* Fix fatal error when resolving relative CSS background image paths.
+* Fix PHP notice on archive and home views when checking excluded post types.
+* Load gumlet.js asynchronously in the footer using wp_script_add_data instead of script_loader_tag filtering.
+
= 1.4.0 =
-* Advanced setting: Auto Resize (auto_resize). When disabled, img src is set directly to the Gumlet URL instead of the placeholder pixel (no viewport-based resize via gumlet.js for those tags).
+* Advanced setting: Auto Resize (auto_resize). When disabled, img src is set directly to the Gumlet URL instead of the placeholder pixel.
+* Fix DOM parsing for img/source tags: do not entity-encode the whole tag before loadHTML (was preventing any img from being found).
+* Support SVG URLs in replace_image_url.
+* Normalize JSON-style escapes in fragments (wp_unslash, \/) before parsing.
+
+= 1.3.20 =
* Fix DOM parsing for img/source tags: do not entity-encode the whole tag before loadHTML (was preventing any img from being found).
* Support SVG URLs in replace_image_url.
* Normalize JSON-style escapes in fragments (wp_unslash, \/) before parsing.
diff --git a/gumlet.php b/gumlet.php
index 505b385..1fd8235 100644
--- a/gumlet.php
+++ b/gumlet.php
@@ -11,7 +11,9 @@
* Plugin Name: Gumlet
* Plugin URI: https://github.com/gumlet/wordpress-plugin
* Description: A WordPress plugin to automatically load all your existing (and future) WordPress images via the Gumlet service for smaller, faster, and better looking images.
- * Version: 1.4.0
+ * Version: 1.4.1
+ * Requires at least: 6.0
+ * Requires PHP: 7.4
* Author: Gumlet
* Text Domain: gumlet
* Author URI: https://www.gumlet.com
diff --git a/includes/class-gumlet.php b/includes/class-gumlet.php
index 63e7705..2940f77 100644
--- a/includes/class-gumlet.php
+++ b/includes/class-gumlet.php
@@ -90,10 +90,6 @@ public function __construct()
$this->doingAjax = (function_exists("wp_doing_ajax") && wp_doing_ajax()) || (defined('DOING_AJAX') && DOING_AJAX);
- // Change filter load order to ensure it loads after other CDN url transformations i.e. Amazon S3 which loads at position 99.
-
- add_filter('script_loader_tag', [$this,'add_asyncdefer_attribute'], 10, 2);
-
add_action('wp_head', [ $this, 'add_prefetch' ], 1);
add_action('wp_enqueue_scripts', [$this, 'enqueue_script'], 1);
@@ -103,21 +99,33 @@ public function __construct()
add_action('wp', [$this, 'init_ob'], 1);
}
- public function add_asyncdefer_attribute($tag, $handle)
+ public function enqueue_script()
{
- // if the unique handle/name of the registered script has 'async' in it
- if (strpos($handle, 'async') !== false) {
- // return the tag with the async attribute
- return str_replace('