jQuery ui autocomplete - .ui-autocomplete-loading
问题 I'd like to apply this css to the search box while it is fetching the XML file. Currently it takes ~3 seconds to load this file. I see in the autocomplete.js file these two functions: _search: function( value ) { this.term = this.element .addClass( "ui-autocomplete-loading" ) // always save the actual value, not the one passed as an argument .val(); this.source( { term: value }, this.response ); }, _response: function( content ) { if ( content.length ) { content = this._normalize( content );