Parsley.js: parsley very slow on large form
Hello,
parsley is very slow on form with around 100 - 200 inputs. it’s take around 1000 ms for the dom to complete. I do like this
$(document).ready(function(){
$myForm.parsley();
});
i guess it’s because $myForm.parsley(); will modify the dom mostly by adding/removing new elements. this effect of updating the dom is very slow (and bad) ! maybe it’s better to add the new elements when they are actually need. exemple empty elements like <ul id="parsley-id-9096" class="parsley-errors-list"></ul>
are they really necessary before an error is raised ?
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 34 (1 by maintainers)
Commits related to this issue
- Basic performance test [#855] — committed to guillaumepotier/Parsley.js by marcandre 9 years ago
- Optimize by not calling attributes a second time [#855] — committed to guillaumepotier/Parsley.js by marcandre 9 years ago
- Optimize by going only through integer indexed attributes [#855] — committed to guillaumepotier/Parsley.js by marcandre 9 years ago
- Slight optimization [#855] — committed to guillaumepotier/Parsley.js by marcandre 9 years ago
- Simplify [#855] — committed to guillaumepotier/Parsley.js by marcandre 9 years ago
- Simplify [#855] — committed to guillaumepotier/Parsley.js by marcandre 9 years ago
- Tweak performance test [#855] — committed to guillaumepotier/Parsley.js by marcandre 9 years ago
- Avoid resetting options on field construction [#855] — committed to guillaumepotier/Parsley.js by marcandre 9 years ago
- Avoid resetting options when constructing form [#855] — committed to guillaumepotier/Parsley.js by marcandre 9 years ago
- Simplify [#855] — committed to guillaumepotier/Parsley.js by marcandre 9 years ago
- Trivial simplification and optimization [#855] — committed to guillaumepotier/Parsley.js by marcandre 9 years ago
- Trivial optimization [#855] — committed to guillaumepotier/Parsley.js by marcandre 9 years ago
- Simplify a bit by moving code around [#855] — committed to guillaumepotier/Parsley.js by marcandre 9 years ago
- Optimize by detecting common case first [#855] — committed to guillaumepotier/Parsley.js by marcandre 9 years ago
- Simplify argument passing [#855] — committed to guillaumepotier/Parsley.js by marcandre 9 years ago
- Avoid multiple form reactualizing [#855] Would be much nicer with block lambdas See http://yehudakatz.com/2012/01/10/javascript-needs-blocks/ — committed to guillaumepotier/Parsley.js by marcandre 9 years ago
- Simplify. attribute.specified is true for modern browsers [#855] — committed to guillaumepotier/Parsley.js by marcandre 9 years ago
Hi,
I have also encountering slow, and unresponsive in chrome browser using
$('form').parsley().validate()
; in 800 - 1000 inputs. I have already upgrade to version 2.62. I am the only one encountering these? If these are not normal I will just move ingrouping
validation instead ofform
validation.Sorry for my bad explanation. 😃
Thank you, Chenee
It’s not clear in the doc, but exclusion is decided after elements have been initialized, so it’s possible to have a
data-parsley-excluded
attribute on specific elements to exclude, so it won’t change much the loading time. We have decided to roll back the jQuery events and go back to a homegrown pubsub for 2.1. Stay tuned…