From d7a290b6354f572f43b801fcf0ddf850d3e75d3c Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 19 Jan 2020 19:13:05 +0000 Subject: [PATCH] index prefetch --- ext/index/theme.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ext/index/theme.php b/ext/index/theme.php index 7db963ea..6b9b43d2 100644 --- a/ext/index/theme.php +++ b/ext/index/theme.php @@ -44,6 +44,13 @@ and of course start organising your images :-) if (count($images) > 0) { $this->display_page_images($page, $images); + if($this->page_number < $this->total_pages) { + $next = $this->page_number + 1; + $u_tags = url_escape(Tag::implode($this->search_terms)); + $query = empty($u_tags) ? "" : '/'.$u_tags; + $next = make_link('post/list'.$query.'/'.$next); + $page->add_html_header(""); + } } else { $this->display_error(404, "No Images Found", "No images were found to match the search criteria"); }