描述
This straightforward plugin makes WordPress website more performant with the following techniques:
- Lazyload for images and iframes
- Adding defer attribute to script tags
Contribution
Feel free to improve the plugin and open pull request in the Github repository.
Development
You need to have node.js and yarn installed.
- Clone repository
git clone git@github.com:mejta/wp-accelerate.git
. - Run
yarn
andyarn start
command. - To build run
yarn build
command.
安装
- Upload the plugin files to the
/wp-content/plugins/wp-accelerate
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress.
- Profit!
评价
此插件暂无评价。
贡献者及开发者
更新日志
1.2.9
- Beaver Builder compatibility
1.2.8
- Dependencies upgrade
1.2.7
- Fixed for IE
1.2.5
- Added filter for content
wp_accelerate_content
1.2.4
- Added support for lazyloaded background images with
style="background-image: url(...)"
1.2.3
- Added support for wp_accelerate_lazyload, wp_accelerate_defer and wp_accelerate_no_defer filters
1.2.0
- Added support for lazyloading of
<picture>
,<video>
and<audio>
elements
1.1.0
- Add wp_accelerate_lazyload filter
1.0.2
- Apply lazy-loading only when on front-end and when not doing ajax, etc.
1.0
- Initial release