Jquery hide or display none

Benchmark created by MathRobin on


Preparation HTML

<div id="test"></div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
Jquery hide
$("#test").hide().show();
ready
Jquery display none
$("#test").css('display', 'none').show();
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.

  • Revision 1: published by MathRobin on
  • Revision 3: published by Fergal on