From ad90643c94dc97b1b63a8678add79c44dbd15e5a Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sat, 26 Nov 2016 23:22:47 +0800 Subject: Optimize pretty page resource packing and load orders --- public/views/pretty.ejs | 42 ++++++++++++++++-------------------------- 1 file changed, 16 insertions(+), 26 deletions(-) (limited to 'public/views/pretty.ejs') diff --git a/public/views/pretty.ejs b/public/views/pretty.ejs index f810a5a9..2ba49e89 100644 --- a/public/views/pretty.ejs +++ b/public/views/pretty.ejs @@ -18,22 +18,16 @@ <% if(useCDN) { %> + + - + + <%- include build/pretty-header %> <% } else { %> - - - + + <%- include build/pretty-pack-header %> <% } %> - - - - - - - - <%- include build/pretty-header %> <%- include polyfill %> @@ -82,28 +76,24 @@ MathJax.Hub.Config({ messageStyle: "none", skipStartupTypeset: true ,tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], processEscapes: true }}); <% if(useCDN) { %> + + + + -<% } else { %> - - - - - - -<% } %> - - - - - + <%- include build/pretty-scripts %> - +<% } else { %> + + +<%- include build/pretty-pack-scripts %> +<% } %> <%- include ga %> -- cgit v1.2.3