From 773c0ce39e2da7ea155949b5a6dae986a747e89a Mon Sep 17 00:00:00 2001 From: Yukai Huang Date: Thu, 13 Oct 2016 11:42:17 +0800 Subject: Optimize common assets with CDN * jquery * lodash * socket.io * boostrap --- public/views/foot.ejs | 7 ++++--- public/views/head.ejs | 5 ++--- public/views/index.ejs | 3 ++- public/views/pretty.ejs | 10 +++++----- public/views/slide.ejs | 3 ++- 5 files changed, 15 insertions(+), 13 deletions(-) (limited to 'public/views') diff --git a/public/views/foot.ejs b/public/views/foot.ejs index 323d18f3..696fe3b6 100644 --- a/public/views/foot.ejs +++ b/public/views/foot.ejs @@ -3,11 +3,8 @@ <% if(useCDN) { %> - - - @@ -20,6 +17,10 @@ <% } %> + + + + <%- include build/index-scripts %> diff --git a/public/views/head.ejs b/public/views/head.ejs index f4ba108a..67884495 100644 --- a/public/views/head.ejs +++ b/public/views/head.ejs @@ -8,17 +8,16 @@ <% if(useCDN) { %> - - <% } else { %> - <% } %> + + diff --git a/public/views/index.ejs b/public/views/index.ejs index 0e41db57..0bc3dd50 100644 --- a/public/views/index.ejs +++ b/public/views/index.ejs @@ -195,7 +195,6 @@ ================================================== --> <% if(useCDN) { %> - @@ -205,6 +204,8 @@ <% } %> + + <%- include build/cover-scripts %> diff --git a/public/views/pretty.ejs b/public/views/pretty.ejs index ecce68d9..0cd9e012 100644 --- a/public/views/pretty.ejs +++ b/public/views/pretty.ejs @@ -18,15 +18,14 @@ <% if(useCDN) { %> - - <% } else { %> - <% } %> + + @@ -90,8 +89,6 @@ MathJax.Hub.Config({ messageStyle: "none", skipStartupTypeset: true ,tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], processEscapes: true }}); <% if(useCDN) { %> - - @@ -102,6 +99,9 @@ <% } %> + + + <%- include build/pretty-scripts %> diff --git a/public/views/slide.ejs b/public/views/slide.ejs index 5b24ab4e..79d77086 100644 --- a/public/views/slide.ejs +++ b/public/views/slide.ejs @@ -87,7 +87,6 @@ MathJax.Hub.Config({ messageStyle: "none", skipStartupTypeset: true ,tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], processEscapes: true }}); <% if(useCDN) { %> - @@ -102,6 +101,8 @@ <% } %> + + <%- include build/slide-scripts %> -- cgit v1.2.3