Re: [VE][106] async value in script tag

> Line 32, Column 15: "ASYNC" is not a member of a group specified for any attribute
> 
> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-54180502-1"><…

Hi Manolo,

The async attribute is from HTML 5, but your page's doctype declares HTML 4, so the Validator flags that as a problem. Info about async:

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#Attributes

You're choices are:

- Ignore the error (most browsers will correctly interpret the async)
- Remove the async, or use an older loading mechanism (at the cost of poorer performance)
- Upgrade the page to HTML5+ (but the Validator will then flag many more errors/warnings)

Cheers - Chuck

Received on Monday, 14 December 2020 14:56:39 UTC