From 63c892b1ed1d51b7d8759f2fb6d52b0e6a11d419 Mon Sep 17 00:00:00 2001 From: jeresig Date: Sun, 10 Oct 2010 13:39:06 -0400 Subject: [PATCH] Make some more tweaks to the closest perf test suite. --- speed/closest.html | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/speed/closest.html b/speed/closest.html index ca2017480..bb31f5d8b 100644 --- a/speed/closest.html +++ b/speed/closest.html @@ -1,7 +1,7 @@ - Test Event Handling Performance + Test .closest() Performance @@ -11,12 +11,14 @@ var node = $("#child"), name; jQuery.each([".zoo", "#zoo", "[data-foo=zoo]", "#nonexistant"], function(i, item) { - name = "closest '" + item + "'"; + setTimeout(function(){ + name = "closest '" + item + "'"; - jQuery("#results").append("
  • " + name + "
  • "); + jQuery("#results").append("
  • " + name + "
  • "); + }, 100); }); });