I'm wondering if this javascript:
function twoPlusTwo() {
var four = 2 + 2;
$.post(document.URL, {'answer' : four}) //with a page refresh
showNumber(four);
}
function showNumber(four){
$('#no_refresh').html(four);
}
twoPlusTwo();
and this html/swig,
<div id="refresh">{{post.answer}}</div>
<div id="no_refresh"></div>
would render faster if I pass the parameter and make a single (not round) trip to the server? My intuition says that it would, but that's been wrong before. If yes, than in a scenario where someone is driving through a tunnel while accessing a heavy page on the mobile version of your website, will it cause a significant difference?