Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Reduce the size of the 404 page #1443
I think we should provide a smaller 404 page as in some cases, the server can generate a lot of 404 pages and users might care a lot about the page size.
People who ever used a mobile data plan know how irritating is to access a large web page, but even more irritating is when the site tries to redirect you the equivalent mobile page and keeps ending up serving you 404 pages that are quite large given the information they offer.
Also, I personally find the search feature in the 404 useless. I tried to use it a couple of times but ended up not finding what I was looking for (Google seems to be on the same page with this). I even asked some of my non-technical friends if they use such a feature. All of them said they don't and they either immediately go back or just close the page and move to the next site.
I am not too keen on big "404" as to regular people that is less useful than "not found", IMO.
I'm happy with minimizing the payload of the page however. And I like the new design
Our current 404 ( http://demo.html5boilerplate.com/sdoifjs ) does indeed need a refresh.
Minification in a H5BP HTML page does no makes sense.
Thanks guys for all the suggestions / opinions so far, I really appreciate them.
I modified the page.
@paulirish Most of the points in the post require some server side logic that I do not think H5BP can't tackle.
@paulirish I've removed it.
@AndrewBrinker I've included the
@FagnerMartinsBrack As long as it's under 1 KB, I guess I'm ok with it being unminified.
Does anybody know if this still applies in IE?
From the default Apache 404
<!-- - Unfortunately, Microsoft has added a clever new - "feature" to Internet Explorer. If the text of - an error's message is "too small", specifically - less than 512 bytes, Internet Explorer returns - its own error message. You can turn that off, - but it's pretty tricky to find switch called - "smart error messages". That means, of course, - that short error messages are censored by default. - IIS always returns error messages that are long - enough to make Internet Explorer happy. The - workaround is pretty simple: pad the error - message with a big comment like this to push it - over the five hundred and twelve bytes minimum. - Of course, that's exactly what you're reading - right now. -->
Quick check with browserstack says yep, even ie 11 -