$('#something').click(function() { location.reload(); });
$(function () { if (performance.navigation.type == 1) { yourFunction(); } });