這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Responsive Divi Backgrounds

外掛說明

“Responsive Divi Backgrounds” will allow you to optimize your website’s image delivery.
This plugin works only with the Divi Builder, usually part of the Divi Theme.
No configuration required.

安裝方式

  1. Visit Plugins > Add New
  2. Search for “Responsive Divi Backgrounds
  3. Download and Activate the plugin.

常見問題集

What are the requirements?

The Divi Builder by Elegant Themes.

What are responsive backgrounds and why should I care?

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.

What about browser support?

All browsers are supported (back to Internet Explorer 9).
The plugin will simply print some CSS media queries in the footer.

Will this plugin affect the performance in a bad way?

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.

Any other recommendations for my Divi website?

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

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Responsive Divi Backgrounds〉的開發相關工作。

參與者

將 Responsive Divi Backgrounds 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

Release date: 15/12/2018
– Initial release

1.0.1

Release date: 14/01/2019
– Small fix to stop the “Undefined index” PHP Notice

1.0.2

Release date: 13/09/2019
– Fix PHP Notice in admin dashboard. Main plugin logic will now load only on front-end.
– SVG images will now be skipped instead of causing errors.
– Improve code readability.