Check hidden (v23)

Revision 23 of this benchmark created on


Preparation HTML

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

Setup

var el = document.getElementById("test");

Test runner

Ready to run.

Testing in
TestOps/sec
el.is(":visible")
if (el.is(":visible")) { var x = el}
ready
el.css('display')
if (el.css('display') != 'none') { var x = el}
ready

Revisions

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