From 3fbfdb7db8b81f12183cf9be735d9c4c0483d9d0 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sat, 26 Nov 2016 23:13:02 +0800 Subject: Optimize index page resources packing and loads --- public/views/index.ejs | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) (limited to 'public/views') diff --git a/public/views/index.ejs b/public/views/index.ejs index f1b4e021..729987ca 100644 --- a/public/views/index.ejs +++ b/public/views/index.ejs @@ -13,25 +13,16 @@ HackMD - <%= __('Collaborative markdown notes') %> - - <% if(useCDN) { %> - + - + <%- include build/cover-header %> <% } else { %> - - - - - - + <%- include build/cover-pack-header %> <% } %> - - <%- include build/cover-header %> <%- include polyfill %> @@ -196,27 +187,18 @@ <%- include signin-modal %> - - <% if(useCDN) { %> + + + + <%- include build/cover-scripts %> <% } else { %> - - - + <%- include build/cover-pack-scripts %> <% } %> - - - - - - - - <%- include build/cover-scripts %> -- cgit v1.2.3