With this change, on my browser, reloading a page in development after changing a CSS file is about 25% faster than simply splitting the CSS code between `application.css` and `vendored.css`. Compared to using only one `application.css` file containing everything, reloading a page in development is about 35% faster. The combined size of all the generated stylesheets is now about 0.5% bigger. Not sure why (maybe placeholder selectors?), but the difference is negligible. Note that we could load the `administration.css` file only in the admin area, reducing the size of the page for people accessing the public area. However, the size of this stylesheet (compressed) is 28K, which is less than 3% of the overall size of a page and, on the other hand, there's a risk of some styles no longer being applied because we might have overlooked the fact that some styles in the `administration.css` are also applied to the public area. So, for now, we're still loading the administration styles in the public area. We might reconsider in the future.
25 lines
936 B
Plaintext
25 lines
936 B
Plaintext
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="generator" content="Zurb Foundation for Sites 6" class="foundation-mq">
|
|
<title><%= content_for?(:title) ? yield(:title) : default_title %></title>
|
|
<% if rtl? %>
|
|
<%= stylesheet_link_tag "vendored-rtl" %>
|
|
<%= stylesheet_link_tag "application-rtl" %>
|
|
<%= stylesheet_link_tag "administration-rtl" %>
|
|
<% else %>
|
|
<%= stylesheet_link_tag "vendored" %>
|
|
<%= stylesheet_link_tag "application" %>
|
|
<%= stylesheet_link_tag "administration" %>
|
|
<% end %>
|
|
<%= javascript_include_tag "application", "data-turbolinks-track" => "reload" %>
|
|
<%= csrf_meta_tags %>
|
|
<%= favicon_link_tag image_path_for("favicon.ico") %>
|
|
<noscript>
|
|
<%= stylesheet_link_tag "noscript" %>
|
|
</noscript>
|
|
|
|
<% if Rails.env.test? %>
|
|
<meta name="turbolinks-cache-control" content="no-preview">
|
|
<% end %>
|