javascript || will use the first value if it is considered true and will use the second if the first evaluates to false.
In this case, I assume that it checks if jQuery.ui exists, and if not, then it will evaluate the anonymous function. If jQuery.ui really exists, then || will not evaluate the second value, and therefore the anonymous function will not be launched.
source share