A loading screen usually waits for every image on the page, including slides and photos far below, before it shows anything. Remove it, or show the top of the page first and load the rest afterwards.

A spinning circle on a fast connection

A customer types your address on the office computer, and instead of the home page a spinning circle appears on a plain background. It turns for four or five seconds before the page fades in.

The connection is fast, and other sites open at once. Phones on a cellular signal wait longer, and some visitors give up and press Back before the circle stops.

Behind the circle, most of the page had arrived almost immediately. The loading screen was hiding it.

What the loading screen waits for

Loading screens, sometimes called preloaders, are a feature of many themes and templates. A script covers the page with the spinner and removes it when the browser reports that the page has finished loading.

That report comes only when everything has downloaded:

The text, the layout and the first photograph were usually ready within a second. The visitor waits for the slowest file on the page, whatever it is.

Why designers add them

Loading screens appeared for understandable reasons. Without one, large photos can appear in pieces, a slider can show all its slides stacked for a moment, and the layout can jump as images arrive.

Covering the page hides that untidiness. It also hides everything that was ready, on every visit, including the visits of returning customers who already have most of the files saved.

The untidiness has better fixes, and they leave the page visible while they work.

A screen that never lifts

A loading screen also adds a new way for the whole site to fail. If one file never arrives, or a script error stops the code that removes the spinner, the circle keeps turning.

Without the cover, a missing image or a broken widget leaves a gap on an otherwise usable page. With it, the visitor sees nothing but the circle.

Seeing what the visitor waits for

Clear the cache, open the developer tools in Chrome, select the network panel and load the home page.

The list shows every file in the order it arrived, with its size and timing. Two markers show when the text and layout were ready and when the last file finished.

The gap between those markers is roughly the time the loading screen adds. On a home page full of slides it can run to several seconds, most of it spent on images the visitor cannot yet see.

A worked example

A chainsaw carver on the Sunshine Coast sells bears, eagles, benches and signs carved from local cedar, and takes commissions from homeowners, resorts and campgrounds.

His site opened with a full-screen slider of twelve large photographs, a video of a carving demonstration and a gallery of forty finished pieces further down. A spinner covered all of it until the last file arrived.

Visitors who looked him up on their phones at his roadside display said the site seemed broken. His web designer found the text and first slide ready in about a second, with the spinner staying for several more.

The spinner was removed. The first slide now loads with the page, the other slides follow once it appears, and the gallery images load as the visitor scrolls towards them.

The photographs were also resized for the space they fill, and the video now shows a still frame until someone presses play.

What changed is the order of work. The browser shows the page as soon as its text and first photograph arrive, and fetches the rest while the visitor is already looking.

Show the top of the page first

Once a loading screen is gone, the page needs a little care so it does not look untidy while the pictures arrive.

Give every image its width and height in the code, so the layout holds its shape as the pictures come in. Load the first slide with the page and the rest a moment later.

Photos far down a long page can wait until the visitor scrolls near them. Embedded videos can show a still image until someone asks to play them.

Smaller files help either way

A loading screen often hides a deeper problem: photographs saved straight from a camera, several megabytes each, shown on the page at a fraction of that size.

Resizing each image to the largest size it is shown at, and compressing it sensibly, shortens the wait with or without a loading screen.

Boxes from other sites deserve the same scrutiny. A feed or a button that loads slowly from someone else's server should never hold up your page.

Returning visitors wait too

A browser keeps copies of files it has already downloaded, so a second visit to the same site is usually faster.

Many loading screens still play their full animation for returning visitors, fading in after a fixed delay. Regular customers checking the hours or a phone number sit through it every time.

The counter-case

Some parts of a page really cannot be used until their data arrives: a booking calendar, a map of available campsites, a tool that works out a quote.

A small loading indicator inside that one part of the page is honest and helpful there. It tells the visitor something is happening without hiding the rest of the page.

On a small, light home page the spinner may show for only a moment. It still adds that moment to every visit for no benefit, and taking it out is usually a small job.

Taking the spinner away

  1. Time the home page with the cache cleared.
  2. Compare the two markers in the developer tools.
  3. Remove the loading screen, or confine it to one tool.
  4. Load the first slide with the page.
  5. Hold back images further down until they are needed.
  6. Resize and compress every large photograph.
  7. Load the page again over a cellular connection.

Step three makes the biggest difference by itself. Every other step shortens the wait for the last image, but without the cover, the visitor never has to wait for it at all.

How quickly Google says the first screen of a page should appear on a phone, and what usually delays it, is laid out in Google's one-second rule for pages on phones.


Frequently asked questions

What does a loading screen wait for?

Usually for the browser to report that every file on the page has arrived: all the slides, photos far down the page, videos, maps, fonts and scripts from other sites.

Why is the site slow on a fast connection?

The connection is not the bottleneck. The page waits for its slowest file, often a large image or a box loading from another site, before the spinner lets anything show.

Will the page look messy without the loading screen?

Not if it is built with care. Give images their sizes in the code, load the first slide with the page, and let photos further down load as visitors scroll.

How can I measure the delay?

Open the developer tools in Chrome, reload with the cache cleared, and compare when the page's text was ready with when the last file finished. The gap is what the spinner adds.

Is a loading indicator ever right?

Yes, inside a part of the page that cannot work until its data arrives, such as a booking calendar. It should never cover the whole page.

Do returning visitors still wait?

Often, yes. Their browser has most files saved, but many loading screens still play a fixed animation before fading in, so regular customers sit through it on every visit.

West Coast Media Solutions Inc. provides web design, web development, hosting, digital marketing, and business consulting to organisations across Canada, drawing on more than twenty-five years in the field.

A spinner in front of your home page?

Share the address with us, and we will time what visitors wait for and show how to let the page appear sooner.

Start a Conversation