描述
Javascript has a HTML based method for deferring and asynchronously loading files, namely script Defer and script Async. Unfortunately these HTML solutions do not work for CSS files.
But do not worry, this plugin allows you to lazy load yous css files. Thus speeding up your initial view experience for visitors and search engines.
安装
- Upload the entire
lh-css-lazy-load
folder to the/wp-content/plugins/
directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Configure the plugin by adding the CSS handles via Settings->CSS Lazy Load
常见问题
- Will this plugin work without javascript?
-
Yes! As CSS elemets are wrapped in a noscript tag, they will be parsed if javascript is deactivated.
评价
2020 年 4 月 22 日
1 回复
It just disables loading whatever css file you provide its handle, which is indeed a nice feature, but not what I downloaded this plugin for… 😐
2020 年 2 月 15 日
Great Work! Thank you.
2018 年 9 月 6 日
This works well with Autoptimize!
You can inline the most necessary and find the least required CSS’s handle and feed it into the Lazy Load CSS.
Worth the install and time effort spent on it
贡献者及开发者
更新日志
1.00 November 20, 2017
Initial release
1.01 November 27, 2017
Minor bug fix
1.02 June 04, 2018
Added tranlation support