Make your website load faster in Divi Theme using image srcsets.
A slower website causes decrease in sales due to increase in bounce rate.
A responsive image offers different sizes of the same image. The browser decides the best image size to render.
Divi includes a fullsize and regular image module. They don’t serve a responsive image. It’s a one-size-fits-all.
The non-responsive image have a single image size. The same image loads on large desktop, tablet and mobiles.
Let’s say you use the native divi image module with image of size 2000px. Serving the 2000px wide image on a device with width 400px serves no purpose other than to slow down the webpage.
The Divi Responsive Image Size plugin has two modules.
Both the modules help creates a image tag with responsive image sizes.
A responsive image adds the srcset and sizes attributes to the image markup.
Consider the example of an <img> tag
<img alt="Divi responsive image sizes" src="default.jpg" srcset="small.jpg 240w, medium.jpg 300w, large.jpg 720w" sizes="(max-width: 360px) 300px, 100vw">
Let’s go over each attribute.
alt=”Divi responsive image sizes”`
The alt attribute describes the alternative text for the image. Browser loads this text when it can’t find the image.
src=”default.jpg”
The src attribute defines a fallback image path for browsers that don’t support srcset and sizesattributes
srcset=”small.jpg 240w, medium.jpg 300w, large.jpg 720w”
The srcset attribute lists images at different sizes. Along with each image path we specify it’s width in pixels.
sizes=”(max-width: 360px) 300px, 100vw”
The sizes attribute instructs the browser on how to pick the right image from the srcset based on the viewport (device) size.
Going by the above example,
Divi supports following css media breakpoints.
For every breakpoint, the responsive divi modules has a corresponding field to set the image width.
Image SEO is important. The responsive divi modules follows google recommendations for image SEO
The Responsive Image and Fullwidth Responsive Image divi modules provide full divi frontend builder support. Add custom styles to the image and caption text via the modules Design tab.
We offer other divi premium plugins. Each of them have a 7-day FREE trial, no upfront payment details required.
Starting from $0 per month.
Rating
Reviewers
1 reviews
Tags
Developed By
wptools
Quick & Easy
Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!
Testimonial plugins for Wordpress
Contact Form plugins for Wordpress
Maps plugins for Wordpress
Translation plugins for Wordpress
Chat plugins for Wordpress
Slider plugins for Wordpress
Reviews plugins for Wordpress
Contact plugins for Wordpress
Galleries plugins for Wordpress
SEO plugins for Wordpress
Forms plugins for Wordpress
Comments plugins for Wordpress
Backup plugins for Wordpress
Privacy plugins for Wordpress
Optimize plugins for Wordpress
Tabs plugins for Wordpress
Social Sharing plugins for Wordpress
Events Calendar plugins for Wordpress
Comments plugins for Wordpress
Social Feeds plugins for Wordpress
Social Sharing plugins for Wordpress
Portfolio plugins for Wordpress
Video Player plugins for Wordpress
popup plugins for Wordpress
SiteMap plugins for Wordpress
Payment plugins for Wordpress
Coming Soon plugins for Wordpress
Inventory plugins for Wordpress
Testimonials plugins for Wordpress
Portfolio plugins for Wordpress
Membership plugins for Wordpress
Forms plugins for Wordpress
Analytics plugins for Wordpress
Events Calendar plugins for Wordpress
Sliders plugins for Wordpress
Analytics plugins for Wordpress
Reviews plugins for Wordpress
Security plugins for Wordpress
Ads plugins for Wordpress
Music Player plugins for Wordpress
Countdown plugins for Wordpress
Email Marketing plugins for Wordpress
Membership plugins for Wordpress
Ecommerce plugins for Wordpress
Customer Support plugins for Wordpress
Video Player plugins for Wordpress
Tabs plugins for Wordpress
Social Feeds plugins for Wordpress
Common Ninja Apps
Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.
Boost Engagement and Foster Community Conversations
Add interactivity, enhance design & convert more with Flip Cards
Boost Engagement with Visually Compelling Interactive Polls
AI-Powered Chat for Instant & Efficient Customer Support
Capture Interest, Gather Contacts, Boost Website Conversions
Create interactive, customizable flashcards for quizzes and learning
Engage, Alert, and Convert with Innovative Notifications
Unlock the Power of Countdown for Downloads
Draw Attention to Information, Wow Users & Improve Navigation
Eye-Catching Multi-Rows Image Slides
Comply With Legal Age Requirements & Protect Your Business
Elevate Your Website Engagement with Engagement Toolbox Widget
More plugins
The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!