From efd62bd1ca5550080ccf1254ecb95c5cb6afd983 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sat, 26 Nov 2016 23:24:59 +0800 Subject: Optimize slide page resource packing and load orders, fix possible wrong chunks orders and font awesome version --- public/js/slide.js | 1 - public/views/html.hbs | 2 +- public/views/slide.ejs | 49 +++++++++++++++++-------------------------------- 3 files changed, 18 insertions(+), 34 deletions(-) (limited to 'public') diff --git a/public/js/slide.js b/public/js/slide.js index 8d45219e..fa4adcb5 100644 --- a/public/js/slide.js +++ b/public/js/slide.js @@ -1,6 +1,5 @@ require('../css/extra.css'); require('../css/site.css'); -require('../css/slide.css'); var extraModule = require('./extra'); var md = extraModule.md; diff --git a/public/views/html.hbs b/public/views/html.hbs index 2e45707b..46b1b925 100644 --- a/public/views/html.hbs +++ b/public/views/html.hbs @@ -16,7 +16,7 @@ - + diff --git a/public/views/slide.ejs b/public/views/slide.ejs index cd3be9aa..bfc5eddf 100644 --- a/public/views/slide.ejs +++ b/public/views/slide.ejs @@ -15,31 +15,23 @@ <% if(useCDN) { %> - + - + + <%- include build/slide-header %> <% } else { %> - - - - + + <%- include build/slide-pack-header %> <% } %> - + - - - - - - - - - <%- include build/slide-header %> + + + + + - <% } else { %> - - - - - - - - - - <% } %> - - - - - + <%- include build/slide-scripts %> + <% } else { %> + + + <%- include build/slide-pack-scripts %> + <% } %> -- cgit v1.2.3