Acquia Optimize

Meta element has no refresh delay

2.2.1 timing Adjustable

Meta element has no refresh delay

Meta redirects are allowed when the page loads, but other than that, they must not happen within the first 20 hours after the page loads.

This document gives information about the related Acquia Optimize checks:

  • Meta element has no refresh delay.

What

The meta element is a piece of code that can be used to redirect the user to another website. It is allowed to do this immediately when the page loads, but other than that, it must not happen within the first 20 hours after the page loads.

Why

Many users with different types of disabilities may need more time to read or navigate through the page. These users might not be able to complete their desired actions if they are automatically redirected to another website, especially if this happens shortly after the page has loaded.

Affected users

This check affects the following users who have:

  • Visual impairments: Who access the site contents with a screen reader or screen magnification software and need more time for navigation.

  • Cognitive impairments: Who need more time to read and understand content.

  • Mobility impairments: Who need more time to navigate the page.

User story

Bridgit is a blind mother to a five-year-old girl and an 11-year-old boy:

"When I think about it, this mostly happens on news websites. I will go on to read an article that sounds interesting, and it takes me a little time to find the right content. But just as I am getting into it, they send me off to another page. It is usually to try and sell me a subscription or some other nonsense. It is always a bit hard for me to figure out what just happened. I guess it is kind of like if you were watching something on TV, and then someone just changes the channel on you without saying anything. It might sound funny, but trust me, it is not.”

Examples

This section gives some examples of the issue.

Example: Redirecting after 30 seconds

This page redirects to a new page after 30 seconds, which may prevent the user from fully interacting with the content as intended.

<head>
 <meta http-equiv="refresh" content="30; URL='https://w3.org'"/>
</head>

Example: Redirecting after 20 hours

The page redirects after more than 20 hours, giving users plenty of time to interact with the content before the redirect occurs.

<head>
 <meta http-equiv="refresh" content="72001; URL='https://w3.org'"/>
</head>

How

How to fix it

The Acquia Optimize platform highlights meta elements with an http-equiv attribute value of 'refresh' and a time attribute value between 0 and 72000 (20 hours).

To fix the issue, update your HTML code so that it either:

  • Does not use meta refresh.

  • Has a time value set to more than 72,000 seconds (20 hours).

  • Has a time value set to "0" for an instant refresh (not recommended).

See the “ACT rules” section below, which includes a link to a complete technical explanation of this check.

Additional resources

WCAG success criteria

ACT rules

Related accessibility conformance testing rules:

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Acquia Help

Filter by product:

Acquia Optimize common questions