News for hackers. Stuff that matters.
Re:Htmx Is the Future by adrr on Friday May 05, 2023 @12:55PM (#35831985)
I don't understand how spa is different than vanilla web app in terms of user analytics? A beacon is a beacon. Whether its img tag with a 1x1 transparent gif or an ajax call.

Also validation is usually built on both client and server for the same things. Like if you have a password complexity validation. Its both on UX and the server otherwise it will be a very terrible UX experience.

Re:Htmx Is the Future by ragall on Friday May 05, 2023 @05:16PM (#35835247)
A SPA can track the mouse cursor, as well as stealing form content that was left unsubmitted.
Re:Htmx Is the Future by detaro on Friday May 05, 2023 @06:39PM (#35835968)
an MPA can use javascript that does exactly the same.
Re:Htmx Is the Future by adrr on Saturday May 06, 2023 @12:51PM (#35843090)
You don’t even need JavaScript. CSS has Hover attribute and you can use it to fire beacons.
Re:Htmx Is the Future by adrr on Saturday May 06, 2023 @12:58PM (#35843175)
Htmlx has a type ahead attribute that you can add to form elements and send the contents to an endpoint without the user explicit submitting the form.