Chapter 5. Tutorial: Build a Fast Hero Slider
A complete walk-through of a homepage hero slider, from choosing images to checking the result in PageSpeed Insights, with the choices that keep it fast at each step.
In this tutorial you build a three-slide hero slider for the top of a homepage. Each step explains what to choose and why. Allow about half an hour.
Step 1: Prepare Your Images
Good results start with good source images. For each slide:
-
Use an image at least 1200 pixels wide, and ideally around 2000 pixels for full-width sliders. SwiftSlider makes the smaller copies; it can't make a small image sharper. For a phone crop, the image needs to be at least 576 pixels wide in the area you want phones to show.
-
Don't worry about file size. Upload the best-quality version you have. SwiftSlider compresses it, and visitors never download your original.
-
Leave room for your text. If a slide will have a heading and a button, choose an image with a calm area where they can sit, or plan to use a content style that adds a background behind them.
-
Write the alt text now. One short sentence describing what the image shows, for visitors who can't see it.
Upload the images to your site with the Media Manager, at → , or upload them while you choose them in the slide editor.
Make sure your Download ID is entered, as described in the section called “Entering Your Download ID”. Without it, your images aren't optimized.
On This Page