开发者 | emandiev |
---|---|
更新时间 | 2019年12月15日 16:23 |
PHP版本: | 4.1 及以上 |
WordPress版本: | 5.3 |
版权: | GPLv3 or later |
版权网址: | 版权信息 |
The Divi Builder by Elegant Themes.
When you upload any image into your website, WordPress automatically creates several smaller variants of your image. If you display the image in a tag, the visitor will load a size that's appropriate to their device. This is a great way to speed-up your website and save bandwidth. However, WordPress doesn't handle background images in this way. By default, the Divi Builder will always show full-sized background images. This isn't great because mobile users will have to download an unnecessary big file. Especially for sliders, you would probably upload an image with size of atleast 1920x1080px to make it look good on big displays. But what if your visitor is using a 320x640px phone? They don't need the big image, right? This is where the "Responsive Divi Backgrounds" plugin comes in handy. The plugin prints CSS in the footer on pages that have slides or sections with background images. The CSS basically tells the browser to display small-sized images on small devices, medium-sized images on bigger devices and so on. Still don't think you need this? Just run a Google PageSpeed Insights test and you will see the "Properly size images" opportunity lowering your score.
All browsers are supported (back to Internet Explorer 9). The plugin will simply print some CSS media queries in the footer.
The plugin should not cause any noticeable slowdown. It's designed to help improve your website's performance. The plugin won't load any additional files. Instead, it simply prints CSS inline in the footer. The plugin checks the current page's content and if there is a slider or a section with a background image, then the CSS gets printed. All other posts/pages won't be affected to maximize performance.
Yes! Try out my lazy loading plugins to further improve your performance and PageSpeed Insights score. Lazy Load Divi Slider Backgrounds Lazy Load Divi Section Backgrounds