parsley very slow on large form
See original GitHub issueHello,
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 ?
Issue Analytics
- State:
- Created 9 years ago
- Comments:34 (1 by maintainers)
Top Results From Across the Web
Attaching Parsley.js Validation Library to Form Takes Very Long
The issue is that Parsley iterates through all elements that match its input selector, wraps them in a Parsley object (which takes a...
Read more >How to Grow Parsley: 5 Tips for Growing Parsley
Parsley seeds are very slow to germinate. Sow seeds in the garden 1/2 inch deep and 6 inches apart. It can take 3...
Read more >Plant, Grow, and Harvest Parsley - The Old Farmer's Almanac
Parsley is a versatile herb in the kitchen that can easily be grown at home. ... 3 to 4 weeks before the last...
Read more >Parsley Grow-A-Long Day 1 - Slow in germination - YouTube
Parsley Grow-A- Long Day 1 - 70 mil of seeds per 4 pads. ... 7 Step 10 Make label my format is Micro...
Read more >Growing Parsley: Complete How To Care Guide
Some of the main causes for browning parsley leaves are overwatering, too much sun, age, and disease. Allow the soil to dry 1”...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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…