PHP Whitespace

PHP Whitespace

The Amazon HTML output is huge so not going to give a screenshot of it all, it’s almost 3,800 lines of HTML code and the Amazon web designers haven’t minified any HTML (Google SEO metric and very easy to achieve).

Above is the first bit of the HTML code to SEO check.

If you see blank lines at the top of your HTML you might have some poorly written PHP code (assuming you use PHP). If it’s a PHP issue it’s whitespace at the end of some PHP code: easily fixed, close your PHP code or remove the whitespace.

Update: October 2018, the Amazon whitespace issue has been fixed. The code is still huge, now 4,400 lines of code with a lot of unnecessary blank lines.

Continue Reading Amazon SEO