What does asynchronous really mean?A synchronous request for colaAn asynchronous request for colaYou’ve been building asynchronous apps all alongBut sometimes you barely even notice...Speaking of more server-side processing...Oh, and password verification...And... how about some eye candy, too?(More) Asynchrony in 3 easy stepsWe need two password fields and a <div> for the cover imagesIf you need new behavior, you probably need a new event handler functionWith ONE request object, you can safely send and receive ONE asynchronous requestAsynchronous requests don’t wait on anything... including themselves!If you’re making TWO separate requests, use TWO separate request objectsRight now, we disable the Register button in initPage()...... and enable the button in the callback functionsAsynchrony means you can’t count on the ORDERING of your requests and responsesA monitor function MONITORS your application... from OUTSIDE the actionYou call a monitor function when action MIGHT need to be takenRight now, the username and password callbacks directly update the Register button’s statusLet’s have the callbacks run the monitor function...... and let the monitor function update the Register buttonStatus variables let monitors know what’s going onAnd now for our last trick...Synchronous requests block ALL YOUR CODE from doing anythingFirst, we no longer need a “submit” buttonSecond, we need to register a new event handler for the button’s onclick eventThird, we need to send an ASYNCHRONOUS request to the serverUse setInterval() to let JavaScript run your process, instead of your own code