Mobile app version of vmapp.org
Login or Join
Pope3001725

: Using Google pagespeed service - w3 validator gives errors I've started using google pagespeed service and now when I check my site on http://validator.w3.org/ with doctype HTML5 and encoding UTF8

@Pope3001725

Posted in: #PageSpeed #W3cValidation

I've started using google pagespeed service and now when I check my site on validator.w3.org/ with doctype HTML5 and encoding UTF8 - I'm getting more than 80+ errors and 95% of them are errors to do with pagespeed

Egs of errors are

Attribute pagespeed_no_defer not allowed on element script at this point

Attribute pagespeed_lazy_src not allowed on element img at this point

Any idea what I should do about these

Thanks

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Pope3001725

2 Comments

Sorted by latest first Latest Oldest Best

 

@Connie744

You must be copying the pagespeed markup into the validator or validating from that page. If you want to get a valid report, you must point the validator to your page and not at the markup in the toolbar (assuming that's what you're doing). Pagespeed does not insert anything into your server markup.

10% popularity Vote Up Vote Down


 

@Heady270

I wouldn't worry about those errors. I'm not sure why pagespeed is putting those attributes in, but they don't seem to be hurting anything other than causing validation warnings.

As far as SEO goes Google Says Pages That Validate Do Not Get Ranking Boost. So having a few validation problems won't cause any problems on that front.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme