iswindow vs inline test

Benchmark created by Rick Waldron on


Preparation HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<iframe id="iframe" name="iframe"></iframe>
<script>
  var frame = jQuery("#iframe"), 
  frameWindow = frame[0].contentWindow;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
isWindow
!jQuery.isWindow( frameWindow );
ready
inline
( !frameWindow.setInterval );
ready

Revisions

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

  • Revision 1: published by Rick Waldron on
  • Revision 2: published by jaubourg on