Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Images and AWD

Featured Replies

Is it better to let the browser resize the image based on resolution breakpoint or is it better to have duplicate images and only the one appropriate for that breakpoint is visible? The QBQ is does invisible items such as images still visible to the search engines A duplicates and do they still add weight to the page even though the site visitor does not see them? Just curious.

 

In other words, which is better - to have a 1280 px image resized to 320 in the browser or to duplicate the image, make it smaller / lighter in weight, and only allow the smaller image on the smaller resolution?

it's better to have the seperate than one huge image as some mobile devices for example might take a lot of time to load very large images especially on 3G, it's always best to keep mobile sites as light as possible.

it's better to have the seperate than one huge image as some mobile devices for example might take a lot of time to load very large images especially on 3G, it's always best to keep mobile sites as light as possible.

 

This. You can write some JavaScript that will swap out the images and stick all the urls in data-attributes. You can roll with the new-ish picture element to let the browser to decide what images to serve up but it won't work on older browsers. The JS solution, for the time being I find the best.

 

The images should also be lazy loaded, whereby you download the image as the user scrolls down to it, I load mine in when the window is about 800px above the said image, so it doesn't really hinder the browsing experience.

 

Doing both of these don't just benefit the user, they also reduce the load on the server.

 

Just bear in mind that a lot of mobiles now run at 2x or even 3x pixel density so you might want to serve up higher resolution images to users with these screens.

Edited by rbrtsmith

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.