Skip to content

Comment on Google bot delays executing JavaScript for daysparent

Comments

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');
  	}
  });

This is exactly what I meant by my initial comment - I should have been more clear.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.