From 28027290b5c19f30421f1c8ea5fe85f87ec8ee2a Mon Sep 17 00:00:00 2001 From: Mikael Korpela Date: Fri, 24 Jul 2015 21:38:40 +0300 Subject: [PATCH] Putting the head in order - Moving a few meta tags+base tag before title. I've noticed Bootstrap [recommends this](http://getbootstrap.com/getting-started/#template) (wasn't sure why) so I did some quick googling and [IE seems to be the reason](http://blogs.msdn.com/b/ieinternals/archive/2011/07/18/optimal-html-head-ordering-to-avoid-parser-restarts-redownloads-and-improve-performance.aspx) but there some other speculations too. Feel free to search more. - ...in any case, [charset tag should come before the title](http://www.w3.org/wiki/The_HTML_head_element#Stop_right_there.21_Inline_CSS_and_JavaScript_is_not_too_clever.21). - Removing keyword tag since it [isn't really used anymore](https://chrisedwards.me/seo/keyword-meta-tag-google/). - Removing duplicate Content-type/Encoding tag - Remove IE shim --- .../core/server/views/layout.server.view.html | 28 ++++++------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/modules/core/server/views/layout.server.view.html b/modules/core/server/views/layout.server.view.html index 8fefeb6c..742dfb34 100644 --- a/modules/core/server/views/layout.server.view.html +++ b/modules/core/server/views/layout.server.view.html @@ -1,25 +1,18 @@ - - {{title}} - - - - + + {{title}} + + - - + - - - - @@ -38,13 +31,8 @@ - + {% for cssFile in cssFiles %}{% endfor %} - - - @@ -59,12 +47,12 @@ - + - {% for jsFile in jsFiles %}{% endfor %} + {% for jsFile in jsFiles %}{% endfor %} {% if process.env.NODE_ENV === 'development' %}