It was suggested to me to use ajaxQueue to solve the problems I was having with loading text with ajax in the order I need it to load.
I gave a look at the script, I tried using is, but I can't seem to figure out how it's supposed to work.
How do I transform something that looks like this
$.ajax({
url: 'text/example.txt',
success: function(text){
document.getElementById("main").innerHTML = document.getElementById("main").innerHTML + text;
}
});
To use ajaxqueue?
Is there any simple way to do it without rewriting the whole thing?
Please don't flag this as duplicate I read any thread I could find but I have no idea what to do