Add buffer page before loading the real index page

Trying to improve user perception of SLOW!
This commit is contained in:
Afiq Hamzah
2024-09-13 18:11:25 +08:00
parent 4bb788f919
commit 71f4168956
4 changed files with 251 additions and 2 deletions
+2 -1
View File
@@ -186,7 +186,8 @@ Route::get('logs', [\Rap2hpoutre\LaravelLogViewer\LogViewerController::class, 'i
// Route::get('/home', 'HomeController@index');
Route::get('/', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
Route::get('/', [App\Http\Controllers\HomeController::class, 'buffer'])->name('buffer');
Route::get('/home', [App\Http\Controllers\HomeController::class, 'home'])->name('home');
Auth::routes(['verify' => true]);