The JS timer blanks all content on the page when it runs out.
window.setTimeout(function() {
document.write("<link rel='prerender' href='http://google.com' />")
}
,10000
);
The effect happens both when the JS is placed within the head and in the body.
How do I do a prefetch/prerender based on a timer without having my page turned blank? (all content vanishes. there is no url redirection. i'm left with a blank page)