Performance: URL_for with static files
MEDIUM IMPACT
This affects page load speed by how static files are linked and cached, impacting initial content display and resource loading.
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> <script src="{{ url_for('static', filename='app.js') }}"></script>
<link rel="stylesheet" href="/static/style.css"> <script src="/static/app.js"></script>
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Hardcoded static URLs | 0 | 0 | Low but causes cache misses | [X] Bad |
| url_for with static files | 0 | 0 | Low with efficient caching | [OK] Good |