Who's Afraid of a Hard Page Load?
Posted4 months agoActive4 months ago
unplannedobsolescence.comTech Discussionstory
informativeneutral
Debate
20/100
Web PerformanceUser ExperienceOptimization Techniques
Key topics
Web Performance
User Experience
Optimization Techniques
Discussion Activity
Light discussionFirst comment
1h
Peak period
1
0-2h
Avg / period
1
Key moments
- 01Story posted
Aug 25, 2025 at 10:17 PM EDT
4 months ago
Step 01 - 02First comment
Aug 25, 2025 at 11:23 PM EDT
1h after posting
Step 02 - 03Peak activity
1 comments in 0-2h
Hottest window of the conversation
Step 03 - 04Latest activity
Aug 26, 2025 at 3:49 PM EDT
4 months ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
ID: 45021556Type: storyLast synced: 11/20/2025, 11:53:21 AM
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.
>ideally, actions that do not required a round-trip to the server wouldn’t use one. A good example of this is form validation.
Client-side validation should always be structural-only, to provide fast-fail feedback to the user prior to a full-page round trip. As in, is there a first name present? Does the eMail address make sense? Are there sufficient digits in the phone number for it to be valid?
Plus, input masks - which clearly provide immediate feedback as the user is typing on how complete some content can be - are an excellent way to give real-time feedback to users. For example, in North America you could set up a phone number input mask to be: `___-___-____`, and not only would the underlines be replaced by numbers as users type, but the input would also be limited to only numbers, preventing malformed input! As a final bonus, any non-placeholder part of the mask - like the separator dashes - would not be included with the form submission, allowing you to drop the phone number into an `integer` field in the DB, thereby avoiding the need to use a corruptible `nchar(12)` field.
And once the form is submitted, the server-side validation should include all the client-side validation only top of business rules that check the nature of the data itself. Such as whether the phone number is only integers 10 digits long, or whether the domain of the eMail address - especially if it isn’t a common/known one - resolves to a live MX server.