How to improve website performance?

1 Measure the page performance

2 Compress and minify the JavaScript and css file

3 Consider leveraging a content delivery network (CDN)

4 Place your javascript at the end of your HTML file if possible.

Seven mistakes that make website slow

1 Too many http requests

Concatenate scripts and stylesheets, combine images with sprites, use fewer images

2 Minimal client-side processing

Validate on the client, use web standards and MVC separation, push presentation code into the client tier, leverage Ajax techniques.

Rule #1 of web security is that user input cannot be trusted. So, validate on the client for performance and UX reasons, and validate on the server for security reasons.

3 Low number of parallel requests

Use browser appropriate domain sharding, use intelligent script loading, leverage keep-alive

4 Failure to leverage browser cache / local storage

Use the right headers, leverage local storage

5 Third party widgets

Avoid third party widgets, use async implementations, measure performance (and stop using the slow ones)

6 Too many bytes

Compression (gzip)

7 Failure to use global network


Define, Measure, Analyze, Improve, Control




About liyao13

Yao Li is a web and iOS developer, blogger and he has a passion for technology and business. In his blogs, he shares code snippets, tutorials, resources and notes to help people develop their skills. Donate $5 to him for a coffee with PayPal at About Me page and read more professional and interesting technical blog articles. Follow him @Yaoli0615 at Twitter to get latest tech updates.
This entry was posted in CS Research&Application, Uncategorized and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s