优先加载layui样式

This commit is contained in:
邹景立 2017-02-17 17:19:40 +08:00
parent 5fd8409ffd
commit 23767f8dbd
2 changed files with 3 additions and 2 deletions

View File

@ -7,6 +7,7 @@
<link rel="shortcut icon" href="{:sysconf('app_logo')}" />
<title>{block name="title"}{$title|default=''}&nbsp;{if !empty($title)}-{/if}&nbsp;{:sysconf('app_name')}&nbsp;|&nbsp;{:sysconf('app_version')}{/block}</title>
<link rel="stylesheet" href="__STATIC__/plugs/bootstrap/css/bootstrap.min.css"/>
<link rel="stylesheet" href="__STATIC__/plugs/layui/css/layui.css"/>
<link rel="stylesheet" href="__STATIC__/theme/default/css/console.css">
<link rel="stylesheet" href="__STATIC__/theme/default/css/animate.css">
{block name="style"}{/block}

View File

@ -29,7 +29,7 @@ require.config({
},
shim: {
'laydate': {deps: ['jquery']},
'layui': {deps: ['jquery', 'css!' + baseUrl + '../plugs/layui/css/layui.css']},
'layui': {deps: ['jquery']},
'socket': {deps: ['//cdn.bootcss.com/swfobject/2.2/swfobject.min.js']},
'bootstrap': {deps: ['jquery']},
'bootstrap.multiselect': {deps: ['jquery', 'bootstrap', 'css!//cdn.bootcss.com/bootstrap-multiselect/0.9.13/css/bootstrap-multiselect.css']},
@ -39,7 +39,7 @@ require.config({
'admin.listen': {deps: ['jquery', 'jquery.cookies', 'admin.plugs']},
},
deps: ['css!//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css'],
urlArgs: "t=" + (new Date()).getTime()
// urlArgs: "t=" + (new Date()).getTime()
});
window.WEB_SOCKET_SWF_LOCATION = "//cdn.bootcss.com/web-socket-js/1.0.0/WebSocketMain.swf";