|
|
|
|
|
by iamjustlooking
4981 days ago
|
|
You don't have to refresh the page, you could make it so that your next page click loads the full page instead of using ajax/pjax. quick pjax e.g.: <html data-lastupdated="1234567890"...
$.getJSON('/lastupdated.json', function(lastupdated) {
if(lastupdated > $('html').data('lastupdated'))
{
$('a[data-pjax]').removeAttr('data-pjax');
}
});
|
|