Bernd Matzner schrieb:
I'm using Jorn's Form Validation in a monster form. Using jQuery
1.2minified version returns all validation in =~ 16 sec. Using
uncompressed
version returns in 6 sec.

Hi, somewhat unrelated to the thread: 6 or even 16 secs seem like an
eternity. What would be the disadvantages of using server-side
validation in such a case? I'm asking this because I keep wondering if
server-side validation is necessary anyway for non-JS visitors, why
not use Ajax and do the validation on the server and simply display
the errors using JS if available...
Please note that I never even tried to optimize the validation plugin for performance. I never had to deal with "monster forms", and still consider them problematic anyway. But it seems like there are quite a few people who have to deal with those monster forms, once I've got a testcase setup it should be possible to improve the performance a lot. I just have to find the actual bottleneck.

I guess serializing a monster form and sending it via ajax and then displaying messages via JS won't be that much faster.

-- Jörn

Reply via email to