简体   繁体   中英

how to measure page load performance on inertiajs app

i need to measure page load performance on inertiajs app. since inertiajs is more like SPA, i'm not sure i can do server side render time after index page loaded. i just wondering is there a way to do this in inertiajs app?to measure how long the time between page routes/requests.

:) I think you might be looking for the out of the box progress indicator . You can add an event listener when a new Inertia visit is initiated.

With that, you can start a timer whenever an event is fired. :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM