Site logo

Archived topic

Lighthouse Error- Charset Declaration Missing or occurs too late

3 replies · Started by Melissa on July 7, 2021

Viewing posts 1–4 of 4

When I test my page for loading/speed optimization I receive the following error in lighthouse,

"Charset declaration is missing or occurs too late in the HTML"

This doesn't make much sense to me because when I go to the header.php the following line is first and active:

<meta charset="<?php bloginfo( 'charset' ); ?>">

However, when I look at the source code I see that the Custom css is the first thing that loads, overriding the meta charset & pushing it way down on the page.

How do I force that header to load first??

Hi there,

Do you get the same error with all plugins disabled except GP Premium?

Let me know :)

Yes, I fixed it by moving that line above the <head> tag and now it loads in the proper place.

Glad to hear :)

This archived topic is closed to new replies.