I don’t what’s wrong with the code I have printed below :
window.top.location = window.top.location;
I thought it’ll just load the same page in the same window, but it’s actually refreshing the page.
What could be done to prevent the refresh? All I want is the page to load again in the same window but no refresh (to prevent server resources)?
You should design your application in order to do that – updating
window.locationwill issue a full page reload.Check client-side templating or pjax either.