Saturday, October 11, 2008

Most important tricks

Performance distribution: Backend ~20% and Frontend ~80%

1. Make fewer HTTP requests. (Combine CSS and JS into single files)
2. Put CSS at the top of the page. (right after <HEAD>)
3. Put JS at the bottom. (right before </BODY>)
4. Use external CSS and JS. (is better due to caching)
5. Minify JS (avoid Obfuscation unless really necessary)

6. Cache AJAX responses (best example: Gameknot tooltip for any username)

No comments: