jQuery UI Tooltip selector

JavaScript performance comparison

Test case created by Sebweaver

Info

Compare two methods to select a whole element for a jQuery UI Tooltip.

Preparation code

<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<div class="foo">Content</div>

Preparation code output

Content

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
Document
$(document).tooltip({ items: ".foo", content: $(this).html() })
pending…
Items
$(".foo").tooltip({ items: ".foo", content: $(this).html() })
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment