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

arielenter's avatar

Create a web app that works with and/or without JavaScript

I will like to create a web app that works with and/or without JavaScript. So far I have learned a little bit of Laravel and some more of vue.js.

In the past, I have used jQuery. Once the content was delivered by the server side, I accessed the DOM to make its content “reactive”. But with vue.js, it appears it requires that its own templates are used and not what the server side offers, witch seems to me it means I will need to create a server side template and another using vue,js templates. Am I wrong?

The difference between the JS version of the site and the one without JS would be minimal.

Could some one let me know what should I study to make what I’m trying to make? Or is vue.js still a good idea for me? I’m pretty sure there must be a way to make vue.js used the provided DOM given by a blade template, but I just want to make sure I’m in the right lead.

Thank you.

0 likes
2 replies
Sinnbeck's avatar

Vue is written to create its own virtual dom. It's not made to select and change stuff in the dom. So if you want that, I suggest you stick with jquery. You can also give alpine a shot. It's sort of a mix between the two as you attach vue like code directly to the dom https://alpinejs.dev/

kokoshneta's avatar

jQuery, Vue and Alpine are all JavaScript. If you want to make the site without JavaScript (so it works if the user has JavaScript completely disabled in their browser), you can’t use any of them at all.

Please or to participate in this conversation.