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.
Comments
Post a Comment