.data()

Store arbitrary data associated with the matched elements or return the value at the named data store for the first element in the set of 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.