文章内容页打开速度较慢的解决方法
答:dedecms内容页面在打开时就统计浏览量,影响了打开的速度,如果将模板article_article.htm中的相应代码移动到模板的底部,就能加快文章页的展开速度,方法如下:
将模板article_article.htm的代码中:
<script src="{dede:field name='phpurl'/}/count.php?aid={dede:field name='ID'/}&mid={dede:field name='memberid'/}&view=yes" language="javascript"></script>
改成:
<SPAN id=lltj>载入中…</SPAN>
然后在模板的最后加放下列代码:
<!--文档统计开始 --><SPAN id=span_lltj>
<script src="{dede:field name='phpurl'/}/count.php?aid={dede:field name='ID'/}&mid={dede:field name='memberid'/}&view=yes" language="javascript"></script>
</span>
<script language="javascript">
lltj.innerHTML=span_lltj.innerHTML;
span_lltj.innerHTML="";
</script>
<!--文档统计结束 -->
最新评论
By DKLJSAJKFL
By DKLJSAJKFL
By rishi513
By rishi083
By leanbiome supplement
By leanbiome website