[更新]修改资源加载,优先加载字体文件

This commit is contained in:
Anyon 2017-09-09 10:10:47 +08:00
parent 6e38e17908
commit d1d3b6dbf9
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
<title>{block name="title"}{$title|default=''}{if !empty($title)} · {/if}{:sysconf('site_name')}{/block}</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="shortcut icon" href="{:sysconf('browser_icon')}" />
<link rel="stylesheet" href="__STATIC__/plugs/awesome/css/font-awesome.min.css?ver={:date('ymd')}">
<link rel="stylesheet" href="__STATIC__/plugs/bootstrap/css/bootstrap.min.css?ver={:date('ymd')}"/>
<link rel="stylesheet" href="__STATIC__/plugs/layui/css/layui.css?ver={:date('ymd')}"/>
<link rel="stylesheet" href="__STATIC__/theme/default/css/console.css?ver={:date('ymd')}">

View File

@ -56,7 +56,7 @@ require.config({
'jquery.cookies': {deps: ['jquery']},
'jquery.masonry': {deps: ['jquery']},
},
deps: ['css!' + _root + '../plugs/awesome/css/font-awesome.min.css'],
// deps: [],
// 开启debug模式不缓存资源
// urlArgs: "ver=" + (new Date()).getTime()
});