Skip to content
Permalink
Browse files

Button performance test: Added alert for time to initialize.

  • Loading branch information...
scottgonzalez committed Jul 16, 2010
1 parent 70481d9 commit b368491f70f87be800acdc47fc7110058c360d06
Showing with 3 additions and 0 deletions.
  1. +3 −0 tests/visual/button/button_performance.html
@@ -16,7 +16,10 @@
<script type="text/javascript" src="../../../ui/jquery.ui.button.js"></script>
<script type="text/javascript">
$(function() {
var start = +new Date();
$("button").button();
var end = +new Date();
alert( "Time to initialize: " + (end - start) + "ms" );
});
</script>
</head>

1 comment on commit b368491

@jzaefferer

This comment has been minimized.

Copy link
Member

commented on b368491 Jul 16, 2010

Why an alert? $("<div/>").text(bla).appendTo("body") is your friend.

Please sign in to comment.
You can’t perform that action at this time.