Performance: Resource naming conventions
MEDIUM IMPACT
Resource naming conventions affect caching efficiency and network request deduplication, impacting page load speed and responsiveness.
app.use('/assets', express.static('public/assets')); // Files named with content hashes like style.abc123.css and script.def456.js
app.use('/assets', express.static('public/assets')); // Files named inconsistently like style.css?v=123 or script_final.js
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Inconsistent resource names causing cache misses | N/A | N/A | Blocks rendering until resource loads | [X] Bad |
| Consistent content-hashed resource names | N/A | N/A | Non-blocking after first load due to caching | [OK] Good |