News for hackers. Stuff that matters.
Re:Can You Afford It? Real-World Web Performance Budgets by jaggederest on Saturday October 28, 2017 @02:24AM (#15574200)
> How do you notify a user of errors in input without a complete page refresh if you do not use Javascript (ignoring the most basic HTML stuff)?

Well, it used to be that submitting a form and rendering errors on the server took the same ~100ms that evaluating a javascript framework validation does now, and so it was... not a problem.

If you mean "leaving aside the most trivial html stuff" to include things like html5 inputs, that's the most significant part of what Javascript provides in form validation.

Re:Can You Afford It? Real-World Web Performance Budgets by aaron-lebo on Saturday October 28, 2017 @02:33AM (#15574220)
You're glamorizing old web. Old web had the same quality issues, most form submissions were not taking 100 ms and JS validation does not (have to) take 100 ms today.

If you exaggerate the numbers, you can't make any useful comparisons.

Re:Can You Afford It? Real-World Web Performance Budgets by vecinu on Saturday October 28, 2017 @02:46AM (#15574242)
What about all of the information that was already in the submitted form?

We can now keep the user's state and inform them of errors in a way that is more difficult with server-ride rendering.

Re:Can You Afford It? Real-World Web Performance Budgets by bildung on Saturday October 28, 2017 @03:32AM (#15574334)
> What about all of the information that was already in the submitted form?

Of course the form gets returned from server validation will all user input prefilled? At least with Django that's the default behaviour.

Re:Can You Afford It? Real-World Web Performance Budgets by DCoder on Saturday October 28, 2017 @09:10AM (#15575029)
Does "all user input prefilled" include file uploads?
Re:Can You Afford It? Real-World Web Performance Budgets by hawski on Saturday October 28, 2017 @02:39PM (#15576183)
It's not complicated. Server could offer to use already uploaded file or selecting a new one. Identifying it with session cookie or some kind of file hash.