Thinking about the internet I assume this is how most stuff worked in the past, and clients had little logic. We now have Vue, React etc and really heavy websites.
So I would like to understand is there a level of complexity at which a UI framework is needed? Do people build UIs using for example Python? Why not have a Python lib to build a full UI?
(And a copy of the ECMAScript specification.)
And, as mentioned by @throwaway888abc, there's also https://hotwired.dev/
Also note - Hotwire
Hotwire is an alternative approach to building modern web applications without using much JavaScript by sending HTML instead of JSON over the wire
If it is simple page, vanilla js is enough. If it is a simple page application, using vanilla js is ok, but eventually you will find you need a framework or your code base is already a framework.
if you don't need a frontend framework, don't reach for a frontend framework.