Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Most times there are some few links that are very frequently clicked on; for example in Hacker News is usually the "next page" and the "threads". So if there is not one already there should be a way to specify some (obligatory?) preload pages.


I think you should utilize the prefetch behavior of the link tag for situations such as these. No need for JavaScript at all.


Could you elaborate this, please.


    <link rel="prefetch" href="http://example.com/page2" />
More info at http://davidwalsh.name/html5-prefetch


In my opinion even that is overkill. Remember, in most cases it’s already instant. The return on investment (speed/requests) abruptly declines with brute preloading.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: