Performance: Asset pipeline basics
HIGH IMPACT
This affects page load speed by controlling how CSS, JavaScript, and images are combined, compressed, and served to the browser.
Using Rails asset pipeline to concatenate, minify, and fingerprint assets into single compressed files.In development, serving many separate CSS and JS files without compression or concatenation.
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Multiple separate CSS/JS files | N/A | N/A | Blocks rendering until all files load | [X] Bad |
| Concatenated and minified assets | N/A | N/A | Faster render, fewer blocking resources | [OK] Good |