开发者 | melmacaluso |
---|---|
更新时间 | 2019年6月20日 08:03 |
PHP版本: | 5.2.4 及以上 |
WordPress版本: | 5.2.1 |
版权: | GPLv2 |
版权网址: | 版权信息 |
src
with data-picafto-load
in your images and Picafto is going to take care of the rest:
Before:
<img src="https//google.com/image.png" alt="image" />
After:
<img data-picafto-load="https//google.com/image.png" alt="image" />
If needed you can opt-out of the lazy loading by simply placing data-picafto-off
as follows:
/wp-content/plugins/picafto
directory, or install the plugin through the WordPress plugins screen directly.It depends on how image-heavy that specific page is. As you can see from the screenshots the increase is substantial when the page is image-heavy on either size-wise or number-wise, as in big images or many images (or incrementally if both).
Guess what? They don't "see" it and what really makes the difference is the alt attribute which will stay the same and untouched. Not to mention that if that claim was remotely true, the page speed increase outweights by far the former thesis.
<img>
tags.data-picafto-off
as an option to optout to lazy loading.