Skip to content

Commit

Permalink
修改pace.js的位置,更靠前执行
Browse files Browse the repository at this point in the history
  • Loading branch information
tywei90 committed Nov 24, 2017
1 parent 93a487c commit c00fba9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions views/common/docHead.pug
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ mixin docHead(config)
meta(http-equiv='X-UA-Compatible' content='IE=edge,chrome=1')
meta(name='viewport' content='width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui')
meta(name='renderer' content='webkit')
if config.showProgressBar
link(rel='stylesheet' href='https://cdn.bootcss.com/pace/1.0.2/themes/blue/pace-theme-loading-bar.min.css')
script(async src='https://cdn.bootcss.com/pace/1.0.2/pace.min.js')
if config.keywords
meta(name='keywords' content=config.keywords)
if config.description
Expand Down
3 changes: 1 addition & 2 deletions views/genpages.pug
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ include ./common/docHead
notCommon: true,
debugJS: false,
debugCSS_IP: '',
showProgressBar: true,
cssFile: [
'https://cdn.bootcss.com/pace/1.0.2/themes/blue/pace-theme-loading-bar.min.css',
'https://pagemaker.wty90.com/public/main.css',
'https://cdn.bootcss.com/antd/2.5.2/antd.min.css',
'https://cdn.bootcss.com/codemirror/5.28.0/codemirror.min.css',
Expand All @@ -22,7 +22,6 @@ include ./common/docHead
body
#app
+jsFile([
'https://cdn.bootcss.com/pace/1.0.2/pace.min.js',
'https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js',
'https://cdn.bootcss.com/react/15.3.1/react.min.js',
'https://cdn.bootcss.com/react-dom/15.3.1/react-dom.min.js',
Expand Down

0 comments on commit c00fba9

Please sign in to comment.