开发者 | emandiev |
---|---|
更新时间 | 2019年12月15日 16:32 |
PHP版本: | 4.1 及以上 |
WordPress版本: | 5.3 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
The Divi Builder by Elegant Themes.
jQuery, but chances are you already load it. Most popular themes use it.
Lazy loading is a technique that defers loading of non-critical resources at page load time. Instead, these non-critical resources are loaded at the moment of need. Where images are concerned, "non-critical" is often synonymous with "off-screen". By lazy loading images, you improve your website's load speed. If you've used Google's PageSpeed Insights tool, you may have seen an opportunity called "Defer offscreen images". Google basically tells us to lazy load our images.
Most lazy loading plugins handle only the <img>
elements from your pages.
Lazy loading background images requires a different approach and this plugin is specially designed to handle Divi Builder section backgrounds.
All modern browsers are supported.
If a visitor has disabled their JavaScript, they will still see the background images as normal. However, they won't benefit from lazy loading.
The plugin should not cause any slowdown. It's designed to help improve your website's performance. The plugin won't load any additional files. Instead, it prints CSS and JS inline in the section and after the main content respectively. Unlike most plugins, the required resources will only be included on the pages which need them. The plugin checks the current page's content and if there is a section with a background image the CSS and JS get printed. All other posts/pages won't be affected to maximize performance.