When running a Google Pagespeed Insight test on a site with the hugo theme 2 things are flagged by google.
[aria-*] attributes are not valid or misspelled
This comes from the fact that the main tag in html sets "aria-role" which is not a valid attribute.
I chose to delete this attribute since tagging it with the same name has no accessibility benefits.
Ensure text remains visible during webfont load
This can be fixed by setting the font-display to swap.
The PR fixes both issues. This might be of value to other people trying to improve the google ranking.
When running a Google Pagespeed Insight test on a site with the hugo theme 2 things are flagged by google.
[aria-*] attributes are not valid or misspelled
This comes from the fact that the main tag in html sets "aria-role" which is not a valid attribute. I chose to delete this attribute since tagging it with the same name has no accessibility benefits.Ensure text remains visible during webfont load
This can be fixed by setting the font-display to swap.The PR fixes both issues. This might be of value to other people trying to improve the google ranking.