s10a's blog



Rules of a good website

投稿日:   カテゴリー: tech

Table of Contents

The websites which you can find these days are mostly crap. If you follow some general rules you can fight against The Website Obesity Crisis.

Current websites which you can find with Google will look like this.

Bad web pyramid

Pretty terrifying right? On contrast...

Ideal web pyramid

This is how websites are supposed to look like.

Here are rules which I think can make a good website.

1. Content is king

People come to your website for the content. Not to view ads or auto playing videos which are annoying.

2. No more unnecessary JavaScript

90% of the websites out there can be written with plain HTML. You do not need JavaScript for rendering every content of your website. It should be used absolutely necessary when you need interactivity.

3. No more CDNs, store files locally

Don't get me wrong CDNs do have some advantages but most of the website do not need them. It is necessary when your website gets numbers of traffic. However this would not happen to personal websites. Generally CDNs have more disadvantages than the advantages.

4. Keep CSS simple

Keep your CSS simple. If you manage to get your CSS over 300 lines you are doing something wrong. Most cases when your CSS file exceeds this numbers of lines it means you are using some tools for generating CSS files meaning you can not manage them by yourself!

5. Optimize images

Please optimize your images. Everyone don't want to see 4000x3000 resolution image of your article thumbnail. Images inside of article should be less than 150 KiB. Keeping file size small helps people who have slow Internet load them faster compared to the ones that are not optimized.

6. Be independent

Avoid Cloudflare or AWS possible. Try as much as possible to be independent to keep the Web independent. The best option here is to setup using your own computer from home using static IP address. This might be a hassle for some people so I will not force everyone to do so.

7. Add RSS/Atom feed

I almost forgot to add this one. It would be nice to have feeds which allows users to follow their content without going to their website with browsers which is time consuming and annoying.