.css()

Get the value of a computed style property for the first element in the set of matched elements or set one or more CSS properties for every matched element.

jQuery.when()

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