posts/index: disable next page prefetching.

This causes the browser to prefetch the next page in a search, which may
make browsing seem faster to the end user, but it effectively doubles
the load on the server.
This commit is contained in:
evazion
2019-08-12 18:17:04 -05:00
parent b50b7f2a91
commit d0d71fcdc8

View File

@@ -71,7 +71,6 @@
<% content_for(:html_header) do %>
<%= tag.link href: posts_path(format: "atom", tags: params[:tags]), rel: "alternate", title: "ATOM", type: "application/atom+xml" %>
<%= tag.link rel: "prefetch", href: next_page_url, as: "html", crossorigin: "use-credentials" %>
<%= tag.link rel: "next", href: next_page_url %>
<% if prev_page_url %>
<%= tag.link rel: "prev", href: prev_page_url %>