I have a MVC project with razor syntax in partial views. Each view has some jquery functions which load some data in forms. Because of asynchronous loading of functions, it may take some seconds to load all functions in the form. If a user click submit button before loading all jquery functions, data lost will occur.
what is the best solution,please?
My view is look like this:
<input type="submit" id="save" />
...
<script type="JavaScript/text">
...
$.getJSON(actionUrl1, function (data) {...});
...
$.getJSON(actionUrl2, function (data) {...});
...
</script>