Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
simonw
1mo ago
0 comments
Share
I take it you've never suggested to a front-end dev that maybe their contact form doesn't need a 1MB+ of JavaScript framework and could just be HTML that submits to a backend.
0 comments
default
newest
oldest
philipwhiuk
1mo ago
Live-form validation? Auto-complete? Any of these ringing a bell?
It's almost like there are genuine UX improvements being done
Zardoz84
1mo ago
You know that pure HTML have it ? and if you need a more complex validation, a few lines of js does the magic. Same if you need live autocomplet.
simonw
OP
1mo ago
Good point, HTML with no JavaScript at all has pretty good validation built in now. Try entering an incomplete email address on this demo page:
https://tools.simonwillison.net/html-validation-demo
simonw
OP
1mo ago
That should be a few dozen lines of vanilla JavaScript.
j
/
k
navigate · click thread line to collapse