I don't know javascript and I have tried to find an answer on this before posting.
$(function(){
$('body').fadeIn(1000);
setTimeout(function(){
$('body').fadeOut(2000, function(){
location.reload(true);
});
}, 5000); // 5 seconds for demo
});
See the code in work here: http://jsfiddle.net/7duedzkb/5/
This code reloads a page every 5 seconds. I'd want to modify it to reload a page only once, basically it will reload the page after 5 secs and then stops the reload loop. I need this on a aggregator type of site where at first page opening the feeds are loaded from cache for speed issues.
Can you help? Much appreciated. Thank you