Lighthouse – Best Practices charset
-
I have connected this plugin with QUIC cloud and ever since Lighthouse is unable to give a score on “Best Practices”, it says:
“A character encoding declaration is required. It can be done with a<meta>
tag in the first 1024 bytes of the HTML or in the Content-Type HTTP response header.?Learn more.”
I have a <meta charset=”UTF-8″> in the html head but Litespeed inserts a script tag above it (even though the wp_head() function comes after the charset):
These are the contents of the script tag:var litespeed_docref=sessionStorage.getItem("litespeed_docref");litespeed_docref&&(Object.defineProperty(document,"referrer",{get:function(){return litespeed_docref}}),sessionStorage.removeItem("litespeed_docref"));
I have a feeling it makes Lighthouse complain the charset is not in the first 1024 bytes?
- The topic ‘Lighthouse – Best Practices charset’ is closed to new replies.