Have the form save each enquiry and show the thank-you page at once, sending the email a moment later. Change the button to show it is sending, and disable it after the first press.

Ten seconds of nothing

A visitor fills in the contact form, presses Send, and waits. The page does not change. After a few seconds she presses Send again, then closes the tab.

At the office, her enquiry arrives twice, five seconds apart. Other visitors who gave up earlier may have sent one copy, or none, and none of them knows which.

No part of the form is faulty. It works; it is simply slow, and it gives no sign that anything is happening.

What the server does after Send

When the visitor presses Send, the browser hands the form to the server and waits for a reply. Until the reply arrives, the old page stays on screen, unchanged.

The server checks the fields, often asks an outside service whether the message looks like spam, then hands the email to a mail server. Only then does it send back the thank-you page.

Each of those steps can involve waiting on another computer somewhere else. The visitor sees none of it, only a page that has stopped responding.

Where the seconds go

When a form takes ten seconds, the time usually goes in one or more of these places:

On a quiet morning these add up to a second or two. On a busy afternoon, or when one service is slow, they can add up to ten.

Why visitors press again

A page that does not change looks like a page that did not work. Most people do what they would do with a stuck button: press it again.

On a phone over a mobile connection, the wait is longer and the doubt arrives sooner. Some visitors try a third time; others give up and call someone else.

The business sees the result as repeated enquiries, puzzling gaps, and the occasional customer who says the form is broken.

Handing the message off quickly

The fix is to stop making the visitor wait for things that can happen afterwards. The form should save the enquiry, show the thank-you page, and send the email a moment later.

One common way is to hand the message to a mail system on the same server, which accepts it at once and delivers it in the background.

Another is to store each enquiry first and send it from a queue. If the mail server is down, the enquiry waits safely instead of vanishing.

A worked example

A drapery maker in Kamloops sews custom drapes, curtains and valances in a small workroom. Most jobs start with a request on the website to book an in-home measuring visit.

The form asks for the rooms, window sizes if known, and a few photos. The office kept getting the same request twice, and some callers asked whether the form worked at all.

Timed with a stopwatch, the form took eight to twelve seconds to show its thank-you page. The script was connecting to the mail provider across the internet and waiting.

It also sent each message to an outside spam-checking service and waited for the answer before doing anything else.

The developer changed the form to save each request and show the thank-you page at once. The email to the office goes out a moment later, and the spam check runs on the saved request.

The Send button now changes to read Sending and cannot be pressed a second time.

Showing that it is sending

Whatever happens on the server, show the visitor that their press was received. Change the button text to Sending, or show a small progress indicator beside it.

Disable the button after the first press, so a second press does nothing. If the server reports an error, enable it again and say plainly what went wrong.

These are small changes, but they settle the visitor's doubt at the moment it arises: something did happen.

Repeats caught on the server

Browsers with scripts turned off, or impatient visitors on slow connections, can still send a form twice. The server can catch what the button misses.

A hidden one-time code in each form, or a check for an identical message from the same address within a few minutes, lets the server keep one copy and set the other aside.

Timing your own form

Fill in your own form with a stopwatch running, on the office connection and on a phone using mobile data, at a busy time of day as well as a quiet one.

Count from the press of Send to the thank-you page, then check that the office copy arrived. Do it again after any change to the hosting or the mail settings.

The counter-case

A form that already answers in a second or two needs no queue. Its email step is fast enough that visitors never notice the wait.

A very quiet site, receiving only a few enquiries each month, may also find a slower form tolerable, so long as nothing is lost.

But disabling the button after one press is worth doing on any form, and a form that ever takes several seconds deserves a developer's look at what it is waiting for.

From Send to thank you

  1. Time the form from Send to the thank-you page.
  2. Find what it waits for: mail, spam check or uploads.
  3. Save each enquiry before sending any email.
  4. Send the email from a queue or a local mail system.
  5. Change the button to show it is sending.
  6. Disable the button after the first press.
  7. Check for repeats on the server as well.

Step three protects the enquiry itself. Once it is saved, a slow or failed email can be retried, and the visitor's request is not lost along the way.

Repeats caused by pressing refresh after the thank-you message are a separate problem with their own fix, set out in duplicate enquiries from visitors who press refresh.


Frequently asked questions

Why does our contact form take so long to send?

The server is usually waiting on something else before it shows the thank-you page: a mail server across the internet, an outside spam check, or uploaded photos.

Why do we get the same enquiry twice?

When nothing changes on screen after Send, visitors assume it failed and press again. Each press sends the form, so each one can arrive as an email.

How can the form respond faster?

Save the enquiry and show the thank-you page at once, then send the email a moment later from a queue or a mail system on the same server.

Should the Send button be disabled?

Yes, after the first press, with its text changed to show the form is sending. Enable it again only if the server reports an error.

Is a button change enough on its own?

Not quite. Visitors with scripts turned off, or on very slow connections, can still send twice, so the server should also recognise and set aside identical repeat submissions.

How do we measure the delay?

Time it with a stopwatch from Send to the thank-you page, on the office connection and on a phone using mobile data, at busy and quiet times.

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.

Contact form slow to say thank you?

Send us the page with the form, and we will time it and find what it is waiting for.

Start a Conversation