Skip to content

Commit

Permalink
For 2.9.0 (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
shinsenter committed Mar 12, 2024
1 parent 7acf773 commit a2e8584
Show file tree
Hide file tree
Showing 7 changed files with 192 additions and 172 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
48 changes: 21 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,38 @@
# defer-wordpress

🥇 Harness the latest WordPress optimization tech, 💯 SEO-friendly, and 🔰 effortlessly user-friendly!
🚀 Unleash the power of cutting edge WordPress optimization tech. 💯 SEO-Optimized and 🎯 Effortlessly User-Friendly!

Download: [https://wordpress.org/plugins/shins-pageload-magic/](https://wordpress.org/plugins/shins-pageload-magic/)

![HitCount](http://hits.dwyl.com/shinsenter/defer-wordpress.svg)
![GitHub](https://img.shields.io/github/license/shinsenter/defer-wordpress.svg)

![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/shinsenter/defer-wordpress.svg)
[![Post an issue](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://code.shin.company/defer-wordpress/issues)
![GitHub issues](https://img.shields.io/github/issues-raw/shinsenter/defer-wordpress.svg)
![GitHub Release Date](https://img.shields.io/github/release-date/shinsenter/defer-wordpress.svg)

⚡️ Experience the speed of a native, lightning-fast lazy loader. ✅ Backward compatibility for legacy browsers (IE9+). 💯 SEO-friendly. 🧩 Lazy-load everything.

This plugin empowers you to optimize various elements, including image tags, videos, audio, iframes, stylesheets, and JavaScript.
⚡️ Experience lightning-fast load times with our native, blazingly quick lazy loader. ✅ Backward compatible with legacy browsers (IE9+). 💯 SEO-optimized. 🧩 Lazy-load everything.

Leveraging tips endorsed by seasoned web experts and harnessing the latest web technologies for resource lazy-loading, this plugin ensures your website operates at peak efficiency.
This plugin empowers you to optimize a wide range of elements, including images, videos, audio, iframes, stylesheets, and JavaScript, for a seamless user experience.

If you find this plugin valuable, please consider leaving a [5-star review (⭐️⭐️⭐️⭐️⭐️)](https://wordpress.org/support/plugin/shins-pageload-magic/reviews/?filter=5#new-post).
Leveraging tips from seasoned web experts and harnessing the latest web technologies for resource lazy-loading, this plugin ensures your website operates at peak efficiency, providing your visitors with a lightning-fast browsing experience.

If you find this plugin valuable, please consider leaving a [5-star review (⭐️⭐️⭐️⭐️⭐️)](https://wordpress.org/support/plugin/shins-pageload-magic/reviews/?filter=5#new-post) to support my efforts.

## Good points
## What People Love

- ⚡️ Native API, blazing fast
- 👍 Legacy browsers support (IE9+)
- 🥇 SEO friendly
-Very easy to use
- 💯 No dependencies, no jQuery
- 🤝 Works well with your favorite frameworks
- 🧩 Uses [IntersectionObserver API](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) for optimized CPU usage
- 🏞 Supports for responsive images, both `srcset` and `sizes` attributes
- ⚡️ Native API, blazingly fast performance
- 👍 Support for legacy browsers (IE9+)
- 🥇 SEO-friendly optimization
-Incredibly easy to use
- 💯 No dependencies, no jQuery required
- 🤝 Works seamlessly with your favorite frameworks
- 🧩 Utilizes [IntersectionObserver API](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) for optimized CPU usage
- 🏞 Supports responsive images with `srcset` and `sizes` attributes

💡 Tip: To archive better result, you should consider disabling all optimization features (Eg. lazy-loading, HTML minification, JS minification, etc.) by other plugins.
💡 Tip: For optimal results, consider disabling optimization features from other plugins (e.g., lazy-loading, HTML minification, JS minification).

We recommend you use it with another page-caching plugin for best performance.
We recommend using this plugin alongside another page-caching solution for best performance.

![Scoring 100/100 in Google PageSpeed Test](https://ps.w.org/shins-pageload-magic/assets/screenshot-1.jpg)

## Browser support

Expand All @@ -49,7 +46,6 @@ This plugin also works perfectly on popular browsers, including Internet Explore
- 📱 Android 4+
- 📱 iOS 3.2+


## Powered by defer.js, defer.php

[defer.js](https://code.shin.company/defer.js)
Expand All @@ -61,14 +57,12 @@ This plugin also works perfectly on popular browsers, including Internet Explore

## Support my activities

[![Donate via Paypal](https://img.shields.io/badge/Donate-Paypal-blue)](https://www.paypal.me/shinsenter)
[![Become a sponsor](https://img.shields.io/badge/Donate-Patreon-orange)](https://www.patreon.com/appseeds)
[![Become a stargazer](https://img.shields.io/badge/Support-Stargazer-yellow)](https://code.shin.company/defer-wordpress/stargazers)
[![Report an issue](https://img.shields.io/badge/Support-Issues-green)](https://code.shin.company/defer-wordpress/issues/new)
If you find these images useful, consider donating via [PayPal](https://www.paypal.me/shinsenter) or open an issue on [Github](https://github.com/shinsenter/defer-wordpress/issues/new).

Your support helps keep these images maintained and improved for the community.

---

Released under the GNU General Public License v2 license.
https://code.shin.company/defer-wordpress/blob/master/LICENSE
Released under the [GNU General Public License v2 license](https://code.shin.company/defer-wordpress/blob/master/LICENSE).

Copyright (c) 2024 Mai Nhut Tan <[shin@shin.company](mailto:shin@shin.company)>
140 changes: 71 additions & 69 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,41 @@ Contributors: shinsenter
Donate link: https://www.paypal.me/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
Tested up to: 6.4
Stable tag: 2.9.0
Requires PHP: 5.6
License: GPL-2.0+
License: GPLv2 or later
License URI: https://code.shin.company/defer-wordpress/blob/master/LICENSE

🥇 Harness the latest WordPress optimization tech, 💯 SEO-friendly, and 🔰 effortlessly user-friendly!
🚀 Unleash the power of cutting edge WordPress optimization tech. 💯 SEO-Optimized and 🎯 Effortlessly User-Friendly!

== Description ==

⚡️ Experience the speed of a native, lightning-fast lazy loader. ✅ Backward compatibility for legacy browsers (IE9+). 💯 SEO-friendly. 🧩 Lazy-load everything.
⚡️ Experience lightning-fast load times with our native, blazingly quick lazy loader. ✅ Backward compatible with legacy browsers (IE9+). 💯 SEO-optimized. 🧩 Lazy-load everything.

This plugin empowers you to optimize various elements, including image tags, videos, audio, iframes, stylesheets, and JavaScript.
This plugin empowers you to optimize a wide range of elements, including images, videos, audio, iframes, stylesheets, and JavaScript, for a seamless user experience.

Leveraging tips endorsed by seasoned web experts and harnessing the latest web technologies for resource lazy-loading, this plugin ensures your website operates at peak efficiency.
Leveraging tips from seasoned web experts and harnessing the latest web technologies for resource lazy-loading, this plugin ensures your website operates at peak efficiency, providing your visitors with a lightning-fast browsing experience.

If you find this plugin valuable, please consider leaving a [5-star review (⭐️⭐️⭐️⭐️⭐️)](https://wordpress.org/support/plugin/shins-pageload-magic/reviews/?filter=5#new-post).
If you find this plugin valuable, please consider leaving a [5-star review (⭐️⭐️⭐️⭐️⭐️)](https://wordpress.org/support/plugin/shins-pageload-magic/reviews/?filter=5#new-post) to support my efforts.

### What People Love

### What people loves
- ⚡️ Native API, blazingly fast performance
- 👍 Support for legacy browsers (IE9+)
- 🥇 SEO-friendly optimization
- ✅ Incredibly easy to use
- 💯 No dependencies, no jQuery required
- 🤝 Works seamlessly with your favorite frameworks
- 🧩 Utilizes [IntersectionObserver API](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) for optimized CPU usage
- 🏞 Supports responsive images with `srcset` and `sizes` attributes

- ⚡️ Native API, blazing fast
- 👍 Legacy browsers support (IE9+)
- 🥇 SEO friendly
- ✅ Very easy to use
- 💯 No dependencies, no jQuery
- 🤝 Works well with your favorite frameworks
- 🧩 Uses [IntersectionObserver API](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) for optimized CPU usage
- 🏞 Supports for responsive images, both `srcset` and `sizes` attributes
💡 Tip: For optimal results, consider disabling optimization features from other plugins (e.g., lazy-loading, HTML minification, JS minification).

💡 Tip: To archive better result, you should consider disabling all optimization features (Eg. lazy-loading, HTML minification, JS minification, etc.) by other plugins.

We recommend you use it with another page-caching plugin for best performance.
We recommend using this plugin alongside another page-caching solution for best performance.

![Scoring 100/100 in Google PageSpeed Test](https://raw.githubusercontent.com/shinsenter/defer.js/master/docs/assets/scores.jpg)


### Browser support

This plugin also works perfectly on popular browsers, including Internet Explorer 9 and later.
Expand Down Expand Up @@ -107,127 +105,131 @@ Copyright (c) 2024 Mai Nhut Tan <[shin@shin.company](mailto:shin@shin.company
== Installation ==

1. Upload the `defer-wordpress` folder to the `./wp-content/plugins/` directory.
2. Activate the plugin via the 'Plugins' menu in WordPress.

While this plugin maintains compatibility with PHP 5.6, we advise running your server on PHP version 7.3 or higher for optimal performance.
2. Activate the plugin through the 'Plugins' menu in WordPress.

While this plugin maintains compatibility with PHP 5.6, we strongly recommend running your server on PHP version 8.1 or higher for optimal performance and speed.


== Frequently Asked Questions ==

= What is defer.js? =

🥇 Defer.js is an exceptionally lightweight, native performance library designed for lazy-loading resources such as JS, CSS, images, and iframes.
🥇 Defer.js is a lightweight, native performance powerhouse designed to lazy-load resources like JS, CSS, images, and iframes with lightning speed.

With Defer.js, you can easily enhance your website's speed.
With Defer.js, you can effortlessly supercharge your website's performance.

= Why should I implement lazy-loading? =

Loading all page contents at once can slow down your website's loading speed. Users dislike staring at a blank white page and tend to leave quickly.
Loading all page content at once can significantly slow down your website's loading speed. Users loathe staring at a blank white page and tend to abandon ship quickly.

Implementing lazy loading can alleviate resource contention, resulting in improved performance.
Implementing lazy-loading can alleviate resource contention, resulting in a silky-smooth browsing experience.

= Why should I use this plugin? =

This plugin offers practical solutions for optimizing on-page resource downloads, based on recommendations from Google Developers available at this website.

You could manually implement these optimizations, but it's time-consuming and requires expertise.
You could manually implement these optimizations, but it's a time-consuming process that requires expertise.

= How does this plugin function? =

This plugin optimizes a wide range of elements, including image tags, videos, audio, iframes, stylesheets, and JavaScript.

It incorporates best practices endorsed by experienced web experts and leverages the latest web technologies for lazy-loading resources.
It incorporates best practices endorsed by seasoned web experts and harnesses the latest web technologies for lazy-loading resources with finesse.

This includes features like creating "data-src" attributes for media and utilizing the loading="lazy" attribute recently introduced by Google Developers.

= High performance and precision =

Additionally, this plugin utilizes the DOM to analyze website structure, delivering precise results and outperforming other plugins that rely on HTML text processing.
Additionally, this plugin utilizes the DOM to analyze your website's structure, delivering precise results and outperforming other plugins that rely on HTML text processing.

Give it a try, and you'll likely be pleasantly surprised by the performance improvements it brings to your website.
Give it a try, and you'll likely be pleasantly surprised by the performance boost it brings to your website.

= What about performance and compatibility? =

We've thoroughly tested this plugin alongside numerous others and haven't encountered any significant conflicts.

For optimal use of this plugin, consider disabling other optimization features (e.g., lazy-loading, HTML minification, JS minification) offered by other plugins.

We also recommend using it in conjunction with a page-caching plugin for the best performance.

We also recommend using it in conjunction with a page-caching plugin for the ultimate performance experience.

== Screenshots ==

1. Achieving a perfect 100/100 score in Google PageSpeed Test!
2. Defer.js empowers you to easily accelerate your website by deferring resource loading.
1. Achieving a perfect 100/100 score in Google PageSpeed Test with ease!
2. Defer.js empowers you to effortlessly accelerate your website by deferring resource loading with finesse.


== Changelog ==

2.6: Fixed bugs related to JSON requests
2.9: Fixed broken feeds and API responses

2.5: Addressed deprecation errors for compatibility with newer PHP versions.
2.8: Updated Defer.js version

2.4: Made minor updates and improvements to the documentation.
2.7: Resolved various bugs

2.3: Resolved various bugs and implemented improvements.
2.6: Fixed bugs related to JSON requests

2.2: Enhanced the codebase for better performance.
2.5: Addressed deprecation errors for compatibility with newer PHP versions

2.1: Fixed bugs (see https://code.shin.company/defer.js/issues/82).
2.4: Made minor updates and improvements to the documentation

2.0: Upgraded to version 2 and renamed the plugin.
2.3: Resolved multiple bugs and implemented enhancements

1.1.15: Fixed bugs present in defer.js versions 1.1.13 and 1.1.14.
2.2: Enhanced the codebase for better performance

1.1.14: Improved overall performance.
2.1: Fixed bugs (see https://code.shin.company/defer.js/issues/82)

1.1.13: Fixed specific issues affecting Firefox.
2.0: Upgraded to version 2 and renamed the plugin

1.1.12: Addressed problems related to Internet Explorer and ensured compatibility with the latest WordPress version.
1.1.15: Fixed bugs present in defer.js versions 1.1.13 and 1.1.14

1.1.11: Fixed a security issue (CVE-2019-18888).
1.1.14: Improved overall performance

1.1.10+5: Removed external resources, bug fixes, and general improvements.
1.1.13: Fixed specific issues affecting Firefox

1.1.10: Resolved various bugs and introduced improvements.
1.1.12: Addressed problems related to Internet Explorer and ensured compatibility with the latest WordPress version

1.1.9: Corrected encoding issues related to the mb_detect_encoding() function.
1.1.11: Fixed a security vulnerability (CVE-2019-18888)

1.1.8: Updated defer.php library to version 1.0.15.
1.1.10+5: Removed external resources, bug fixes, and general improvements

1.1.7: Fixed issues affecting Firefox and made code improvements.
1.1.10: Resolved various bugs and introduced improvements

1.1.6: Updated the library version and enhanced JavaScript execution order.
1.1.9: Corrected encoding issues related to the mb_detect_encoding() function

1.1.5: Hotfix for escaping HTML node values.
1.1.8: Updated defer.php library to version 1.0.15

1.1.4: Implemented numerous improvements.
1.1.7: Fixed issues affecting Firefox and made code improvements

1.1.3: Unified lazy attributes with other plugins.
1.1.6: Updated the library version and enhanced JavaScript execution order

1.1.2: Fixed known issues with gtm.js and improved plugin caching.
1.1.5: Hotfix for escaping HTML node values

1.1.1: Addressed small bugs, including IE polyfill, missing meta tags, and preloading ads.
1.1.4: Implemented numerous improvements

1.1.0: Added a settings page.
1.1.3: Unified lazy attributes with other plugins

1.0.9: Enhanced preloading code.
1.1.2: Fixed known issues with gtm.js and improved plugin caching

1.0.8: Fixed issues related to open web fonts.
1.1.1: Addressed small bugs, including IE polyfill, missing meta tags, and preloading ads

1.0.7: Optimized script loader, polyfill, and scrset.
1.1.0: Added a settings page

1.0.6: Addressed minor bugs, including color placeholders and CSS issues.
1.0.9: Enhanced preloading code

1.0.5: Migrated to defer.js library.
1.0.8: Fixed issues related to open web fonts

1.0.0 to 1.0.4: Initial implementation and development phases.
1.0.7: Optimized script loader, polyfill, and srcset

1.0.6: Addressed minor bugs, including color placeholders and CSS issues

== Upgrade Notice ==
1.0.5: Migrated to defer.js library

No action required, simply install and enjoy!
1.0.0 to 1.0.4: Initial implementation and development phases

== Upgrade Notice ==

If you are currently using an older version of this plugin, we strongly recommend updating now.
No action is required, simply install and enjoy the plugin!

While this plugin maintains compatibility with PHP 5.6, we advise running your server on PHP version 7.3 or higher for optimal performance.
If you are currently using an older version of this plugin, we strongly recommend updating to the latest version.
While this plugin maintains compatibility with PHP 5.6, we advise running your server on PHP version 8.1 or higher for optimal performance.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.8.0
2.9.0
Loading

0 comments on commit a2e8584

Please sign in to comment.