javascript - jQuery performance is too slow (toggle) -


i have problem toggle function of jquery low case. need toggle on 2000 rows , script needs on 30 seconds.

how can improve performance ? maybe javascript instead of jquery?

$('#toggleaspmaterials').click(function() {      $('#catalog body.asp').toggle();      return false;  });
<input id="toggleaspmaterials" value="show asp materials / hide" class="button" type="button">

here comparision between vanilla , jquery, it's based on operations / second. so, yes, maybe using javascript can optimize case enough.

enter image description here

diagram original source


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -