The .size() method returns the number of elements in the current jQuery object, but duplicates the more-efficient .length property which provides the same functionality. As of jQuery 1.9 the .length property is the preferred way to retrieve this value.
Solution: Replace any use of .size() with .length.
Examples of incorrect code for this rule:
$('.foo').size()
Examples of correct code for this rule:
$('.foo').length