Server side code is different as the server usually starts an interpreter that compiles the file on-the-fly in case it changed since the last pageview.
> the server usually starts an interpreter that compiles the file on-the-fly
You may already be aware of this, but you can set up the same workflow for frontend development (if you have a compilation step). "Watch mode" seems to be the popular nomenclature for this in the JavaScript community.