Resolves http://bugs.jqueryui.com/ticket/9370 without slow down.