jquery $.GET loading order
- by welovedesign
I am loading all external pages in jquery for a slider. The problem is it loads in a different order. What I need to do is sequence the loading of pages
$.get("page1.php", function( my_var ) {
$('#slider').append($('.content', my_var));
});
$.get("page2.php", function( my_var ) {
$('#slider').append($('.content', my_var));
});
$.get("page3.php", function( my_var ) {
$('#slider').append($('.content', my_var));
});
sometimes page3 loads before page2.