Does jQuery 1.7.2 user interface improve performance improvement to 1.8.7?

My site uses only dialog boxes and buttons from jQuery UI. In general, everything works fine, but from time to time some users encounter problems with poor performance; the system is not as responsive as they should be.

Upgrading from jQuery 1.4.2 to 1.4.4 really did a good job, because there are a lot of calls to find()/ in my code filter(). Should I expect any performance benefits from updating jQuery UI?

+5
source share
3 answers

, .

  • . , , API - . . , .
  • API, . " , ". , , . , , , 5 .

, , 1.8.7, . , .

...

, . , .. , . jQueryUI.

+5

, - , .

0

.

, .

. , , .

:

if( $('#some-id').find('.foo').length > 0 ) {
  //do something with foos
  console.log($('#some-id').find('.foo'));
}

var $foos = $('#some-id .foo');
if( $foos.length > 0 ) {
  //do something with foos
  console.log($foos);
}

, .

, . , ?

0
source

All Articles