PERF: Shrink mobile payload, don't render for noscript on mobile

This commit is contained in:
Sam
2015-11-09 14:55:17 +11:00
parent 1bcdade45f
commit 9f56381b0b
2 changed files with 8 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
<%- unless mobile_view? %>
<% if @category %>
<h1>
<% if @category.parent_category %>
@@ -39,6 +41,8 @@
</div>
<% end %>
<%- end %>
<% if @rss %>
<% content_for :head do %>
<%= auto_discovery_link_tag(:rss, "#{Discourse.base_url}/posts.rss", title: I18n.t("rss_description.posts")) %>