Performance: First Laravel application
MEDIUM IMPACT
This affects the initial server response time and how fast the page content is delivered to the browser.
<?php // routes/web.php Route::get('/', function () { return view('welcome'); });
<?php // routes/web.php Route::get('/', function () { $users = App\Models\User::all(); return view('welcome', ['users' => $users]); });
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Loading all users on homepage | N/A (server-side) | N/A | N/A | [X] Bad |
| Serving simple static view | N/A (server-side) | N/A | N/A | [OK] Good |