Image Background
CSS gives us the way to use a background image without driving mobile visitors away with poor page download time. Mobile visitors are an impatient bunch. The viewport items must download and create an impression on less than two seconds or they will leave.
Image Insert
The best approach is to forget about the traditional method of stretching an image to cover the browser background and to find a way to avoid Javascript.
The background can be fixed and set to fill the width and height of the viewport rather than the browser.
Instead of using one large image file, different size images for the various devices can be inserted. There are two methods for this …
[1] Insert the images in the background an use media queries to download the appropriate size for the visitor's device.
[2] Use the HTML5 <picture> element to insert the various images. This is the best method. It has an important advantage over the background image method in that it allows the insertion of alt text for the search engines and screen readers.