I want to use multiple forms in one page in my project because RightJS have many good methods for AJAX form handling. But I am afraid that it will lead to problems with speed.
Does it really so?
I want to use multiple forms in one page in my project because RightJS have many good methods for AJAX form handling. But I am afraid that it will lead to problems with speed.
Does it really so?
Basically, as good people of stackoverflow already told you, in most cases it will be just fine, but I tell you what. The best way to answer a question like "will it be slow or not" is to implement the thing.
Just write a simple loop, generate a bunch of things on the page and see what happens. In many cases there are too many variables and hidden issues to say for sure what will happen. A little bit of an old fashioned experiment will give you more than hours of wondering around :)
Having multiple <form>
elements can be better for performance, since you're not submitting useless information outside the scope you care about with each submit.
Use as many as appropriate - the units that your information is submitted in, that should be the scope of a particular <form>
element, so you're dealing with and submitting only the information you care about with each action.
It's both semantically and performance wise a good move. At the same time, don't go completely overboard and have 100 forms, unless there are actually 100 units of work.
Speed will not be affected by having multiple forms on a page.