User:Samwilson/prerenderPages.js

( function ( mw, $ ) {

$( 'a[rel="next"], a[rel="prev"]' ).each( function {		$( ' ' ).load( $( this ).attr( 'href' ) );	} );

}( mediaWiki, jQuery ) );