jQuery: css-display:none vs. hide (v17)

Revision 17 of this benchmark created on


Preparation HTML

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

Setup

var el = document.getElementById("hide-me");
    var $el = $(el);

Test runner

Ready to run.

Testing in
TestOps/sec
Native hide/show
el.style.display = 'none';
el.style.display = '';
ready
jquery hide/show
$el.hide();
$el.show();
ready

Revisions

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