This repository has been archived by the owner on Sep 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Community: Performance Recommendations
ebollens edited this page Sep 29, 2011
·
4 revisions
- Application cache
- Use a CDN to deliver images from multiple domains (for parallel in stream to counter HTTP 1.1 spec)
- Place all
<style>
and<link>
in<head>
- Place all app-specific
<script>
at the bottom of - Make
<script>
and<link>
external rather than inline to minimize non-cached response time - Reduce redirects
- In PHP, flush the buffer right after with flush()
- Sprite images
- Use pngcrush and jpegtran
- Use image compressor, don't scale images
- Keep components under 25K so that iPhone will cache them
- Keep DOM small
- Apache 2 mod_deflate (or Apache 1.3 mod_gzip) to gzip files
- Use a CDN to deliver images from multiple domains
- Use cookie-free domains for components
- Apache Keep-Alive header
- Javascript benchmarking
- Revisiting the Cache headers
- Tighten up "domain" on cookies (explicit)
- Always use event handlers smartly (tighten the number of listeners)
- Convert to using imagemagik (from GD) and optimize as necessarily
- Keep components under 25K so that iPhone will cache them (js.php is 27 KB currently)