Reduce Http request - Send it as infrequently as possible
Http round trip is expensive esp. with a long RTT, or for new http connection. Reducing http request can be achieved using the following:
- Merge static resources (CSS, JS, Image)
- Add Cache control (including ajax?)
- Combine dynamic requests
- Build Single page application (using Ajax)
- Avoid redirect
- Fewer DNS lookup
Small data size saves bandwidth (tcp package numbers). It can be achieved using below ways:
- Gzip resources
- Minify JS and CSS (Code optimization, obfuscation, duplication removal)
- Crush images
- Add Cache control (caching in browser)
- HTML5 local storage, local cache
Jpegmini.com is a free service for jpeg optimization
ReplyDeletespriteme.com is for css sprite
ReplyDelete