.text()

Get the combined text contents of each element in the set of matched elements, including their descendants, or set the text contents of the matched elements.

jQuery.when()

Provides a way to execute callback functions based on zero or more Thenable objects, usually Deferred objects that represent asynchronous events.