Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
simonw
4mo ago
0 comments
Save
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
4 comments · 1 top-level
top
newest
oldest
philipwhiuk
4mo ago
· 3 in thread
Live-form validation? Auto-complete? Any of these ringing a bell?
It's almost like there are genuine UX improvements being done
Zardoz84
4mo 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
4mo 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
4mo ago
That should be a few dozen lines of vanilla JavaScript.
j
/
k
navigate · click thread line to collapse