summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorYukai Huang2016-10-13 11:42:17 +0800
committerYukai Huang2016-10-13 11:42:17 +0800
commit773c0ce39e2da7ea155949b5a6dae986a747e89a (patch)
tree40669290c9d3de36fa9a56c2af49b3c3a235429c /public/js
parent43c9f68b9a67fa7f5b3e5a7f0dc6d5f8c9114d20 (diff)
Optimize common assets with CDN
* jquery * lodash * socket.io * boostrap
Diffstat (limited to '')
-rw-r--r--public/js/index.js5
-rw-r--r--public/js/public.js3
-rw-r--r--public/js/slide.js3
3 files changed, 2 insertions, 9 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 626799c4..20a76ff1 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -1,9 +1,6 @@
/* jquery and jquery plugins */
require('../vendor/showup/showup');
-/* bootstrap */
-require('bootstrap/dist/css/bootstrap.css');
-
require('prismjs/themes/prism.css');
require('highlight.js/styles/github-gist.css');
@@ -15,6 +12,8 @@ var saveAs = require('file-saver').saveAs;
require('js-url');
require('randomcolor');
+var _ = require("lodash");
+
var List = require('list.js');
var common = require('./common.js');
diff --git a/public/js/public.js b/public/js/public.js
index 5fd3fd79..ac951804 100644
--- a/public/js/public.js
+++ b/public/js/public.js
@@ -1,9 +1,6 @@
/* jquery and jquery plugins */
require('../vendor/showup/showup');
-/* bootstrap */
-require('bootstrap/dist/css/bootstrap.css');
-
require('prismjs/themes/prism.css');
require('highlight.js/styles/github-gist.css');
diff --git a/public/js/slide.js b/public/js/slide.js
index 1f4892f9..257c60bb 100644
--- a/public/js/slide.js
+++ b/public/js/slide.js
@@ -1,6 +1,3 @@
-require('bootstrap/js/tooltip');
-require('bootstrap/dist/css/bootstrap.css');
-
require('prismjs/themes/prism.css');
/* other vendors plugin */