|
1 | 1 | # defer-wordpress
|
2 | 2 |
|
3 |
| -🔌 WordPress remains one of the most popular CMS platform until now, and I'm excited to make a Wordpress plugin integrating my beloved "defer.js" library into your websites. Hope you guys like it. |
| 3 | +⚡️ A native, blazing fast lazy loader. ✅ Legacy browsers support (IE9+). 💯 SEO friendly. 🧩 Lazy-load everything. |
| 4 | + |
| 5 | +Download: [https://wordpress.org/plugins/shins-pageload-magic/](https://wordpress.org/plugins/shins-pageload-magic/) |
4 | 6 |
|
5 | 7 | 
|
6 | 8 | 
|
|
11 | 13 | 
|
12 | 14 |
|
13 | 15 |
|
| 16 | +This plugin helps you to optimize everything like image tags, video, audio, iframes as well as stylesheets, and JavaScript. |
| 17 | + |
| 18 | +This plugin incorporates tips used a lot by experienced web experts, as well as making the most of the latest web technologies in lazy-loading resources on the page. |
| 19 | + |
| 20 | +Rate [5 stars (⭐️⭐️⭐️⭐️⭐️)](https://wordpress.org/support/plugin/shins-pageload-magic/reviews/?filter=5) if you guys like it. |
| 21 | + |
| 22 | + |
| 23 | +## Good points |
| 24 | + |
| 25 | +- ⚡️ Native API, blazing fast |
| 26 | +- 👍 Legacy browsers support (IE9+) |
| 27 | +- 🥇 SEO friendly |
| 28 | +- ✅ Very easy to use |
| 29 | +- 💯 No dependencies, no jQuery |
| 30 | +- 🤝 Works well with your favorite frameworks |
| 31 | +- 🧩 Uses [IntersectionObserver API](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) for optimized CPU usage |
| 32 | +- 🏞 Supports for responsive images, both `srcset` and `sizes` attributes |
| 33 | + |
| 34 | +💡 Tip: To archive better result, you should consider disabling all optimization features (Eg. lazy-loading, HTML minification, JS minification, etc.) by other plugins. |
| 35 | + |
| 36 | +We recommend you use it with another page-caching plugin for best performance. |
| 37 | + |
| 38 | + |
| 39 | +## Browser support |
| 40 | + |
| 41 | +Available in latest browsers. This library also works perfectly with Internet Explorer 9 and later. |
| 42 | + |
| 43 | +- 🖥 IE9+ / Microsoft EDGE * |
| 44 | +- 🖥 Firefox 4+ |
| 45 | +- 🖥 Safari 3+ |
| 46 | +- 🖥 Chrome * |
| 47 | +- 🖥 Opera * |
| 48 | +- 📱 Android 4+ |
| 49 | +- 📱 iOS 3.2+ |
| 50 | + |
| 51 | + |
| 52 | +## Powered by defer.php |
| 53 | + |
| 54 | +[defer.php](https://github.com/shinsenter/defer.php) is a library that focuses on minimizing payload size of HTML document and optimizing processing on the browser when rendering web pages. |
| 55 | + |
| 56 | +- [x] Simplify library options |
| 57 | +- [x] Embed defer.js library |
| 58 | +- [x] Normalize DOM elements |
| 59 | +- [x] Fix missing meta tags |
| 60 | +- [x] Fix missing media attributes |
| 61 | +- [x] Preconnect to required origins |
| 62 | +- [x] Preload key requests |
| 63 | +- [x] Prefetch key requests |
| 64 | +- [x] Browser-level image lazy-loading for the web |
| 65 | +- [x] Lazy-load offscreen and hidden iframes |
| 66 | +- [x] Lazy-load offscreen and hidden videos |
| 67 | +- [x] Lazy-load offscreen and hidden images |
| 68 | +- [x] Lazy-load CSS background images |
| 69 | +- [x] Reduce the impact of JavaScript |
| 70 | +- [x] Defer non-critical CSS requests |
| 71 | +- [x] Defer third-party assets |
| 72 | +- [x] Add fallback `<noscript>` tags for lazy-loaded objects |
| 73 | +- [x] Add custom HTML while browser is rendering the page (splashscreen) |
| 74 | +- [x] Attribute to ignore optimizing the element |
| 75 | +- [x] Attribute to ignore lazyloading the element |
| 76 | +- [x] Optimize AMP document |
| 77 | +- [x] Minify HTML output |
| 78 | + |
| 79 | + |
| 80 | +## Why should I lazy-load my content? |
| 81 | + |
| 82 | +The loading of contents on web page may make your load speed more slow, no one likes staring at a blank white page; users are impatient and will leave quickly. |
| 83 | + |
| 84 | +Lazy loading content on web page can help reduce resource contention and improve performance. |
| 85 | + |
| 86 | + |
| 87 | +## Why should I use this plugin? |
| 88 | + |
| 89 | +This plugin supports you to handle some common tips to help your website optimize the download of on-page resources. |
| 90 | + |
| 91 | +These tips are published at [following website](https://web.dev/) by Google Developers, if you are interested you can consult to understand more about website optimization. |
| 92 | + |
| 93 | +You can also manually implement these tips your-self, but it takes a lot of time and requires a lot of expertise. |
| 94 | + |
| 95 | + |
| 96 | +## How does this plugin work? |
| 97 | + |
| 98 | +This plugin helps you to optimize everything like image tags, video, audio, iframes as well as stylesheets, and JavaScript. |
| 99 | + |
| 100 | +This plugin incorporates tips used a lot by experienced web experts, as well as making the most of the latest web technologies in lazy-loading resources on the page. |
| 101 | + |
| 102 | +Among them are creating "data-src" attributes to laza-load the media, even the [loading="lazy" feature](https://web.dev/browser-level-image-lazy-loading/) recently introduced by Google Developers. |
| 103 | + |
| 104 | + |
| 105 | +## High performance and accuracy |
| 106 | + |
| 107 | +In addition, this plugin uses DOM to process the website structure so it produces accurate results and is faster than any other plugin that uses HTML text processing. |
| 108 | + |
| 109 | +You can give it a try and I believe you will be surprised by the results it brings to your website. |
| 110 | + |
| 111 | + |
| 112 | +## Stable performance and high compatibility |
| 113 | + |
| 114 | +We have tested this plugin with quite a few others and have not found any significant conflicts. |
| 115 | + |
| 116 | +For best use of this plugin, you should consider disabling all optimization features (Eg. lazy-loading, HTML minification, JS minification, etc.) by other plugins. |
14 | 117 |
|
15 |
| -## Keep in touch |
| 118 | +We recommend you use it with another page-caching plugin for best performance. |
16 | 119 |
|
17 |
| -[](https://www.paypal.me/shinsenter) |
18 | 120 |
|
19 |
| -[](https://www.patreon.com/appseeds) |
| 121 | +## Support my activities |
20 | 122 |
|
21 |
| -- Keep up-to-date with new releases: |
22 |
| -[https://wordpress.org/plugins/shins-pageload-magic/](https://wordpress.org/plugins/shins-pageload-magic/) |
23 |
| -- Become a stargazer: |
24 |
| -[https://github.com/shinsenter/defer.js/stargazers](https://github.com/shinsenter/defer.js/stargazers) |
25 |
| -- Report an issue: |
26 |
| -[https://github.com/shinsenter/defer.js/issues](https://github.com/shinsenter/defer.js/issues) |
| 123 | +[](https://www.paypal.me/shinsenter) |
| 124 | +[](https://www.patreon.com/appseeds) |
| 125 | +[](https://github.com/shinsenter/defer-wordpress/stargazers) |
| 126 | +[](https://github.com/shinsenter/defer-wordpress/issues/new) |
27 | 127 |
|
28 | 128 | ---
|
29 | 129 |
|
|
0 commit comments