by want2know · 7y ago · 0 comments
True. But I'm glad to use Javascript on forms where fields are depending on input from other fields.
Or when you want to give the user the option to submit multiple entries of the same field type. For example when you ask for a job history.
Yes you can sumbit the form on every step but this is much harder to develop and has a lot of negative interactions for the user. For example the scrollposition is gone on each submit. And the user has to wait for a reply from the server on each submit.
Javascript is not the problem, bloated and spammy websites are.
Could this be fixed by dynamically-created anchors, so for instance when one is adding a new row to the "job experience" section of an application form, the reload to add the new row could also direct the user to "somesite.com/jobapp#JobExp2"?
It is part of the problem. Because of what Javascript allows and makes possible, bloat can thrive and endure in the modern web.