Responsive Image Optimization
BOWWE tutorials
Welcome to our collection of online lessons. We’ve created these to help you learn the best practices and get the most out of BOWWE. Come back here whenever you want!

Responsive Image Optimization

Image optimization is a very important topic to consider when updating your website’s content. In this world, where even a second can make a difference in user experience, a faster loading site is not a luxury, but a must-have and the number one reason for slower loading speeds tend to be the images. But we can fix this problem, by following the rules regarding Responsive Web Design.

What is Responsive Web Design

Responsive Web Design (RWD) is a set of rules that are essential to achieve best project quality. We do provide you with those options, but some of those require additional effort to take full advantage of. Those rules include:

  1. Framework - which is a platform for hosting and building your website, instead of a more archaic approach of writing the whole code by hand. One such framework is our BOWWE Creator, and its design will automatically help you with accomplishing this step toward the best website you could hope for.
  2. Fluid Grid System - helps you organize your content in a coherent and neat way that is easy to understand and follow. Widgets utilizing such solutions are sections, columns, and areas.
  3.  Media Queries/Breakpoints - these dictate how the page should look once a certain screen size is met. Sometimes what looks good on a desktop can be too big on a phone screen, so this will help you style your page to look perfect on any device.
  4. Fluid Image - the main focus of this tutorial. In short, it describes all the guidelines for a perfect balance between image quality and its loading time, which is often harder to achieve than it looks like. This is the point that requires the most user involvement and we’ll explain in detail what to look out for and what to keep in mind while uploading those pictures to your project.

How to optimize your images

Image format

There are a great number of image formats, and most of them serve different purposes.

 

  • JPEG is used for classic photos,
  • PNG is used for images utilizing transparency
  • SVG is used for icons based on vector graphics
  • WebP is used as an optimized substitute for JPEG and PNG, supporting transparent files and even animated ones.

 

WebP is a relatively new image format but you can be sure that all modern browsers support it. In our projects, we use only WebP for images and SVG for vector icons, and we recommend the same for you.

Compress and resize images

Uncompressed images can take up to several Megabytes of data that needs to be uploaded before the page can be fully experienced by a user which can take even multiple seconds of time. That’s why it’s crucial to optimize your image and according to Google, the optimal size for the image shouldn’t exceed 100kB of space. To help achieve it sometimes an image might require a resize to a size it’s mostly going to be seen. It’s almost impossible to fit a 4k image under 100kB without a substantial loss in quality, but an image in the size of HD+ (1600x900px) is much easier. The closer an image is to its displayed size, the better. You can easily find multiple online sites with free-to-use compression applications that can help you with this.

Responsive widget image

Having responsive images means that they will automatically adjust to the size of the container and device size so as not to exceed the workspace. This is by default set for our image widgets thanks to our BOWWE framework. As long as the image follows the responsive widget placement it will follow this rule and you can adjust this behavior to suit your needs by for example changing the max-width of your image to 50%.

Lazy loading and src-set

Inside the widget image settings there are properties that can improve your widget loading on smaller devices.

 

  • Src-set - will automatically generate a thumbnail for certain device sizes that will load quicker
  • Lazy Loading - will prevent loading the image until the user scrolls to that element on the page

Note:

Lazy loading is great way to improve page loading time, however, we recommend not to use it for images that appear at the start of your page, since postponed loading can actually negatively impact the user experience. If the image is not vissible in the viewport at the beggining of the page, then lazy loading is good to go.

CSS style editing

For some effects like masks or rounded corners instead of applying them to the image itself, which will increase its size, we can add those through our creator as CSS styles. Similarly, with having floating icons on the picture, we can use mask and separate widget icons to break complex images into smaller pieces which will be easier to load individually rather than as one massive file.

Media Breakpoint testing

Lastly we need to check if all of our settings look good on every device so as a standard procedure we need to check our breakpoints and adjust the images for those resolutions that need adjustments.
Congratulations!
Now you know how to optimize your website images.

Hours

Minutes

Seconds

3 years for less than 1 year

save up to

$723

Closing Symbol