diff --git a/admin/Ilove_Img_Compress_Plugin.php b/admin/Ilove_Img_Compress_Plugin.php
index 19a19422..5b6d5a71 100644
--- a/admin/Ilove_Img_Compress_Plugin.php
+++ b/admin/Ilove_Img_Compress_Plugin.php
@@ -19,7 +19,7 @@ class Ilove_Img_Compress_Plugin {
* @access public
* @var string VERSION The current version of the plugin.
*/
- const VERSION = '2.0.2';
+ const VERSION = '2.0.3';
/**
* The unique identifier of this plugin.
@@ -104,7 +104,7 @@ public function enqueue_scripts() {
// Enqueue the main JavaScript file.
wp_enqueue_script(
self::NAME . '_admin',
- plugins_url( '/assets/js/main.js', __DIR__ ),
+ plugins_url( '/assets/js/main.min.js', __DIR__ ),
array(),
self::VERSION,
true
@@ -113,7 +113,7 @@ public function enqueue_scripts() {
// Enqueue the main CSS file.
wp_enqueue_style(
self::NAME . '_admin',
- plugins_url( '/assets/css/app.css', __DIR__ ),
+ plugins_url( '/assets/css/app.min.css', __DIR__ ),
array(),
self::VERSION
);
diff --git a/assets/css/app.css b/assets/css/app.min.css
similarity index 100%
rename from assets/css/app.css
rename to assets/css/app.min.css
diff --git a/assets/js/main.min.js b/assets/js/main.min.js
new file mode 100644
index 00000000..c34146e1
--- /dev/null
+++ b/assets/js/main.min.js
@@ -0,0 +1 @@
+!function(){var i,e="",a=(void 0!==window.adminpage&&(e=window.adminpage),new Array);var o;switch(e){case"upload-php":case"media_page_iloveimg-media-page":case"post-php":jQuery(document).on("click","button.iloveimg-compress",function(e){var t=jQuery(e.target),i=t.closest("td");t.attr("disabled","disabled"),t.next().show(),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"ilove_img_compress_library",id:t.data("id")||t.attr("data-id"),imgnonce:t.data("imgnonce")||t.attr("data-imgnonce")},success:function(e){t.removeAttr("disabled"),i.html(e)},error:function(){t.removeAttr("disabled")}})}),jQuery(document).on("click","button#iloveimg_allcompress",function(e){o=jQuery("button.iloveimg-compress").length,jQuery("button#iloveimg_allcompress").attr("disabled","disabled"),jQuery("button.iloveimg-compress").each(function(e,t){jQuery(t).trigger("click"),i=setInterval(function(){var e=100-100*jQuery("button.iloveimg-compress").length/o;jQuery("button#iloveimg_allcompress .iloveimg-compress-all__percent").width(e+"%"),jQuery("button.iloveimg-compress").length||clearInterval(i)},300),location.reload()})}),jQuery("