question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

parsley very slow on large form

See original GitHub issue

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 ?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:34 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
cheneesamcommented, Feb 24, 2017

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 in grouping validation instead of form validation.

Sorry for my bad explanation. 😃

Thank you, Chenee

1reaction
marcandrecommented, Apr 12, 2015

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…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found