Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vincent15000's avatar

InertiaJS vs only VueJS

Hello,

I'm a little disappointed by InertiaJS.

InertiaJS offers effectively a great way to handle authentication and routing, but I find that it generates the feeling of a heavy code while loading datas to be displayed in the views.

The views don't display directly and immediately on the screen, it always takes a little time (very little time) which is perceptible and IMHO doesn't give a very good user experience.

What about your opinion ?

Thanks for sharing your experience ;).

Vincent

0 likes
5 replies
martinbean's avatar
Level 80

InertiaJS offers effectively a great way to handle authentication and routing

@vincent15000 It doesn’t. You should be doing that on the server. Inertia essentially replaces views; you don’t do routing with it.

The views don't display directly and immediately on the screen, it always takes a little time (very little time) which is perceptible and IMHO doesn't give a very good user experience.

Well, this is what happens when you move rendering to the client via JavaScript 🙃 This isn’t a downside of InertiaJS; this is literally the downside of using any JavaScript to render your front-end.

If you want your views to be rendered and populated with data as soon as they’re retrieved from the server, then just build a “normal” web app with controllers and Blade views, instead of drinking the Kool-Aid or whatever new package has come out.

1 like
vincent15000's avatar

@martinbean About authentication and routing, I'm ok with what you say, I just wanted to say that I don't need to do anything for authentication and routing because it's automatic via InertiaJS without having to handle authentication and routing in the frontend.

I will try SSR as @tykus suggested.

I'm not sure that it's possible to use InertiaJS SSR on a shared webhosting.

vincent15000's avatar

@martinbean I have a personal application built with Laravel and VueJS (without InertiaJS) and when I display views, the view appears directly on the screen and I have a loader which appears if the datas take more than 250ms to be loaded.

With exactly the same application with Laravel and VueJS, this time with InertiaJS, it takes much more time than without InertiaJS.

That's what I wanted to say.

Please or to participate in this conversation.