user6758349
user6758349

Reputation:

Is AJAX success callback synchronous?

I know that AJAX is asynchronous. But what about the event execution inside the success callback? For example, if I have code like

$.ajax({
    url : 'example.com',
    type: 'GET',
    success : (dataFromServer) {
        event1();
        event2();
        event3();  
    }
})

Will they execute in order? Assuming event1(), event2(), and event3() are synchronous functions

Upvotes: 0

Views: 291

Answers (1)

Denno
Denno

Reputation: 2168

Yes, they'll be executed one after the other

Upvotes: 1

Related Questions