I am taking a click event on an anchor with JQuery which makes a $.getJSON request to the server sending some data in the querystring. I am doing some logic in the server with the querystring provided and returning nothing back to the client. I am not making e.preventDefault(); on the click; so after the javascript code runs it will go immediately to navigate to another page. my question is: Is there any side effect to let this code runs like that? Normally i would do:
e.preventDefault();
$.getJSON('uri', function(data){
location = $(this).href;
});
To navigate after the callback.