It is important for a number of reasons why your web site page load speed is as fast as possible. Our previous article “How to speed up your web page load time” explains the importance of the issue.
Increasing your web site performance usually involves a number of small changes to your web page. Some of Google’s PageSpeed suggestions are easier to resolve than others.
The Message:
Google’s PageSpeed reports “The following resources have no character set specified in their HTTP headers. Specifying a character set in HTTP headers can speed up browser rendering.”
The Issue:
Specifying a character set in the HTTP response headers of your HTML documents allows the browser to begin parsing HTML and executing scripts immediately.
The solution:
This is easy if your pages are PHP encoded. Simply add the following line of code to the top of your PHP page:
header(‘Content-type: text/html; charset=iso-8859-1’);
The Result:
Re-run Google PageSpeed and see the warning message vanish!