Get AJAX data from server before document ready (jQuery)
问题 I want take some data from server and write it to global array in JavaScript. Then in document ready I want to use this array to create some new elements (options). I should have global array with this data, because after first load client can modify user interface using this data. $(document).ready(function () { UseAjaxQueryForFillGlobalArray(); MakingInterfaceUsingGlobalArray(); }); But I have strange behavior, when I debug page, I can see that method MakingInterfaceUsingGlobalArray working