在引入js之后,怎么才能渲染快点
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content='{PE.Field id="cone" fieldname="Title" /}' name="Description" />
<meta content='{PE.Field id="cone" fieldname="Keyword" /}' name="Keywords" />
<title>{PE.Field id="cone" fieldname="Title" /}-{PE.SiteConfig.SiteTitle/}</title>
<link rel="stylesheet" type="text/css" href="sheet.css" />
<link href="/Template/jsxy/css/css.css" rel="stylesheet" type="text/css" />
{PE.Label id="公共脚本" /}
<script language="javascript" type="text/javascript" src="{PE.SiteConfig.ApplicationPath/}js/jquery.galleria.js"></script>
< <script type="text/javascript">
Galleria.loadTheme('{PE.SiteConfig.ApplicationPath/}js/jquery.galleria.classic.js');
</script>
</head>
<script type="text/javascript">
Galleria.loadTheme('{PE.SiteConfig.ApplicationPath/}js/jquery.galleria.classic.js');
</script>
<script type="text/javascript">
Galleria.loadTheme('{PE.SiteConfig.ApplicationPath/}js/jquery.galleria.classic.js');
</script>
这句话 在一定程度上阻止了样式的加载
渲染很慢
------解决方案--------------------
要么把引入js放body的最后,要么动态加载js。
发布之前,把js压缩了,减少字节数。