Performance: Production environment configuration
HIGH IMPACT
This affects the page load speed and runtime responsiveness by optimizing asset delivery, caching, and error handling in production.
config.assets.compile = false config.assets.digest = true config.cache_classes = true config.eager_load = true
config.assets.compile = true config.assets.debug = true config.cache_classes = false
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| On-the-fly asset compilation | Low | Multiple on each request | High due to delayed styles/scripts | [X] Bad |
| Precompiled assets with caching | Low | Single initial load | Low with cached styles/scripts | [OK] Good |
| No compression or caching | N/A | N/A | High network payload delays paint | [X] Bad |
| Compression and caching enabled | N/A | N/A | Low network payload speeds paint | [OK] Good |