外掛說明
This plugin lazy loads WooCommerce product images on the shop and archive pages.
Credits
https://web.dev/lazy-loading-images/
安裝方式
- Download the .zip file
- Upload and extract the contents of the zip file to your wp-content/plugins/folder
- Activate the plugin from your WP-admin / Plugins
- Enjoy!
常見問題集
-
How to add my own placeholder image?
-
- Open the wc-lazy-loader.php file in the plugin folder
- Scroll down to line 42
- Replace the “placeholder-image.png” with a valid place holder image URL from your website.
-
Why use event handlers and not IntersectionObserver API
-
Good question! Using event handlers is considered to be one of the most compatible ways to approach lazy loading that works pretty much on every browser. We will, however, be switching to IntersectionObserver API in the next release.
-
I installed the plugin. Did it make any difference in my performance?
-
You can use https://gtmetrix.com/ or https://developers.google.com/speed/pagespeed/insights/ to check. It would be a good idea to check your site before installing this plugin, and then again after installing and activating this plugin.
使用者評論
2023 年 4 月 4 日
I tried it on a site that has five WooCommerce product sliders on its front page and takes 30s to load – no difference in load time.
Plugin hasn’t been updated in 3 years and has no reviews, which suggests it’s not very useful. Seems like a good idea to me though.
參與者及開發者
變更記錄
1.1
- Added – compatible with latest WC and WP.
- Added support for latest PHP
- Updated – versions
- Freemius SDK integrated
1.0
- first release version
