The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
prefetch next page
I would like to have my next page prefetched when users are reading a topic.
This can be done by using the <link> command in headerinclude. But I cant get the threadid and nextpage variables in the header properly. Someone any idea how to do this? tia, Jerome |
#2
|
|||
|
|||
never mind...got it working....very dirty but it works.
maybe someone can convert the code to some proper code (gpc) etc. I've put this in header include: Code:
<vb:if condition="$_GET['t'] > '0'"> <vb:if condition=$_GET['page']> <link rel="prefetch" href="http://www.crapforum.nl/showthread.php?t={vb:raw $_GET['t']}&page={vb:math {$pagenumber}+1}"> <link rel="prerender" href="http://www.crapforum.nl/showthread.php?t={vb:raw $_GET['t']}&page={vb:math {$pagenumber}+1}"> </vb:if> <link rel="prefetch" href="http://www.crapforum.nl/showthread.php?t={vb:raw $_GET['t']}&page={vb:math {$pagenumber}+2}"> <link rel="prerender" href="http://www.crapforum.nl/showthread.php?t={vb:raw $_GET['t']}&page={vb:math {$pagenumber}+2}"> <vb:else /> <link rel="prefetch" href="http://www.crapforum.nl/search.php?do=getdaily&contenttype=vBForum_Post"> <link rel="prerender" href="http://www.crapforum.nl/search.php?do=getdaily&contenttype=vBForum_Post"> </vb:if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|