Where is sitepoint minified html page

Hi

i just ran a test for sitepoint website on google page speed

www.sitepoint.com

In the results google says “Your HTML is minified”

But if i see view-source of sitepoint homepage in the browser, then its not minified ??

Means i can see white spaces, tabs (new line) etc .

how do sitepoint homepage clear test as “Minified” html ??

please see attachments and let me know how to clear the minified html test without minifying ??

vineet

thanks
vineet

There isn’t very much to gain minifying html. In most cases it won’t make any noticeable difference in page load times. You should focus efforts on more impactful optimization efforts. Those types of efforts include but are not limited to first byte response time, minimizing outbound requests, and small assets ie. images, videos, etc. If you have done the best you can with all that than *maybe you can *waste your time with minifying the html source code.

hi oddz

the question is not about whether i should focus on minifying html or not

the question is “why the google passed it as minified html when it is not minified” ??

thanks
vineet

Did you look at the link about minified html? It has nothing to do with removing white spaces and such

Hi DaveMaxwell

This is normal html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
</body>
</html>

This is minified html done at http://minifycode.com/html-minifier/

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Untitled Document</title></head><body></body></html>

so all manual online html minifiers removes whitespaces

vineet

A page will clear that test if Google does not think the page needs to be minified.
As @oddz points out, the gains for minifying a small page are minimal, so Google does not consider it necessary for many pages.
Only very long pages with a lot of html will fail on that test and be recommended to minify.

So what Google is saying is not that the page has its whitespace removed, but that the page does not have a huge amount of html.

2 Likes

Hi SamA74

This may be the point google seeing.

vineet

Hi SamA74

do you have any idea “how much file size does google say is fine” ??

vineet

I don’t know. You would have to test different pages to see which one pass and fail.
I have just one page that fails that test, it is a long list 197 KB of html.
The same page flags in Bing WMT SEO Reports for having a large amount of html, it says:-

SEO Analysis Detail (Beta)

SEO Suggestion: Evaluated size of HTML is estimated to be over 125 KB and risks not being fully cached.
Severity: Low
Error Count: 1
Non-Compliant Pages: 1
SEO Explanation: Search engines may not fully acquire the content on a
page if the page is contains a lot of code. Extraneous code can push the
content down in the page source making it harder for a search engine
crawler to get to. A soft limit of 125 KB is used for guidance to
ensure all content & links are available in the page source to be
cached by the crawler. This basically means if the page size is too big,
a search engine may not be able to get all of the content or may end up
not fully caching it.
Recommended Action: Ensure that the page source does not contain large
amounts of CSS or code at the top of the page. Consider moving code and
styles into separate files.

This suggests that Bing sees >125 KB as being too large. I don’t know what figure Google considers too large, but it’s less than 197 KB.

FWIW I have an HTML page that is 170KB which PageSpeed Insights rates as 91/100 for speed (the HTML page seems fine but it recommends minifying teh CSS).

Google does not recommend minifying the html?

If that is the case the figure is narrowed down to somewhere between 197 and 170 KB.

3 Likes

Nope! Looks like we’ve found the answer.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.