当前位置:编程学习 > C#/ASP.NET >>

网站首页打开速度慢

我的网站是www.zhuzaiwl.com ,谁能帮帮我啊,我首页的打开速度特别慢,而且有的时候连接自动取消!!!

下面我把代码发在下面:

<!--$include file="header.html"-->
<div class="mainwrap">
<div class="currbox"><span class="current1"><b>你的位置:</b><a href="/">{$tag:sitename} → 首页</a></span><span class="current2" id="current2">{$xml:specialmenu file="specialmenu.xslt" action="1" channelid="2" type="1" maxnum="0"}</span></div>
<div class="mainlet">
<h3><span class="boxhead">焦点图片</span></h3>
<div class="focusimgbox">{$xml:newslist file="bcastr31.xslt" setcache="0" channelid="1" type="0" image="1" maxnum="6" classid="0" width="235" height="211" select="0"}</div>
<h3><span class="boxhead1" id="boxhead1" onmouseover="$('sitecount').style.display='';$('announcements').style.display='none';$('boxhead1').className='boxhead1';$('boxhead2').className='boxhead2';">站内统计</span><span class="boxhead2" id="boxhead2" onmouseover="$('sitecount').style.display='none';$('announcements').style.display='';$('boxhead2').className='boxhead1';$('boxhead1').className='boxhead2';">站内公告</span></h3>
<ul id="sitecount" class="countbox">
<li>共有文章数量: <font color="red"><b>{$xml:statistic channel="news" channelid="0" type="0" classid="0" setcache="news0"}</b></font> 篇</li>
<li>今日更新文章: <font color="red"><b>{$xml:statistic channel="news" channelid="0" type="1" classid="0" setcache="news1"}</b></font> 篇</li>
<li>共有软件数量: <font color="red"><b>{$xml:statistic channel="soft" channelid="0" type="0" classid="0" setcache="soft0"}</b></font> 个</li>
<li>今日更新软件: <font color="red"><b>{$xml:statistic channel="soft" channelid="0" type="1" classid="0" setcache="soft1"}</b></font> 个</li>
<li>软件总的容量: <font color="red"><b>{$xml:statistic channel="soft" channelid="0" type="3" classid="0" setcache="soft3"}</b></font> G</li>
<li>共有动画数量: <font color="red"><b>{$xml:statistic channel="flash" channelid="0" type="0" classid="0" setcache="flash0"}</b></font> 个</li>
<li>今日更新动画: <font color="red"><b>{$xml:statistic channel="flash" channelid="0" type="1" classid="0" setcache="flash1"}</b></font> 个</li>
<li>投稿信箱地址: <font id="onlineCount" style="color:red;font-weight : bold;">zhuzaiwl@qq.com</script></font></li>
</ul>
<ul id="announcements" class="countbox" style="display:none">
{$xml:announcements id="announcements" setcache="index1" maxnum="8" length="32" target="_blank" showdate="0" action="1" datemode="MM-dd"}
</ul>
</div>
                  <div class="mainmid">
<h3><span class="boxhead">最新软件更新</span><span class="morelinks"></a></span></h3>
<ul class="list-box">
{$xml:softlist file="softlist.xslt" channelid="2" setcache="0" type="0" classid="0" maxnum="20" length="35" showcate="1" showdate="1" datemode="yyyy-MM-dd"}
</ul>
</div>
<div class="mainmid">
<h3><span class="boxhead">最近文章更新</span><span class="morelinks"></a></span></h3>
<ul class="list-box">
{$xml:newslist file="newslist.xslt" setcache="0" type="0" channelid="{$channelid}" classid="0" maxnum="20" length="32" showcate="1" showdate="1" datemode="yyyy-MM-dd"}
</ul>
</div>
<div class="leftMainBox">
<div class="leftAreaHad"><span class="boxhead">软件下载</span><span>{$xml:classmenu file="classmenu.xslt" channelid="2" maxnum="8" action="2"}</span></div>
<div class="leftAreaBox">
<ul class="smallbox1 toplist-icons2">
<li class="smallhead">下载排行</li>
{$xml:softlist file="toplist.xslt" setcache="0" type="2" maxnum="12" length="19" showcate="0" showdate="0" ellipsis="0" target="_blank"}
</ul>
<ul class="smallbox2 list-box">
{$xml:softlist file="softlist.xslt" setcache="0" type="0" classid="0" maxnum="14" length="35" showcate="1" showdate="1" datemode="MM-dd" ellipsis="0"}
</ul>
<ul class="smallbox3">
{$xml:softlist file="imagetext.xslt" type="0" image="1" maxnum="1" eachline="1" length="22" strlen="156" width="162" height="130" ellipsis="0" target="_blank"}
</ul>
<div style="clear:both"></div>
</div>
</div>
<div class="mainrit">
<h3><span class="boxhead">本日下载排行</span></h3>
<ul class="list-icons">
{$xml:softlist file="toplist.xslt" setcache="0" type="1" maxnum="15" length="28" showcate="0" showdate="0" ellipsis="0"}
</ul>
</div>
<div style="clear:both"></div>
<div class="leftMainBox">
<div class="leftAreaHad"><span class="boxhead">QQ资源</span><span>{$xml:classmenu file="classmenu.xslt" channelid="1" maxnum="8" action="2"}</span></div>
<div class="leftAreaBox">
<ul class="smallbox1 toplist-icons">
<li class="smallhead">QQ资源排行</li>
{$xml:newslist file="toplist.xslt" setcache="0" type="2" maxnum="12" length="19" showcate="0" showdate="0" ellipsis="0" target="_blank"}
</ul>
<ul class="smallbox2 list-box">
{$xml:newslist file="newslist.xslt" setcache="0" type="0" classid="0" maxnum="14" length="35" showcate="1" showdate="1" datemode="MM-dd" ellipsis="0"}
</ul>
<ul class="smallbox3">
{$xml:newslist file="imagetext.xslt" channelid="1" type="0" image="1" maxnum="2" eachline="1" length="21" strlen="0" width="162" height="110" ellipsis="0" target="_blank"}
</ul>
<div style="clear:both"></div>
</div>
</div>
<div class="mainrit">
<h3><span class="boxhead">推荐QQ资源</span></h3>
<ul class="sidelistbox">
{$xml:newslist file="newslist.xslt" setcache="0" type="1" maxnum="15" length="28" showcate="0" showdate="0" ellipsis="0" action="3"}
</ul>
</div>
<div style="clear:both"></div>
<div class="leftMainBox">
<div class="leftAreaHad"><span class="boxhead">YY资源</span><span>{$xml:classmenu file="classmenu.xslt" channelid="5" maxnum="8" action="2"}</span></div>
<div class="leftAreaBox"><div style="clear:both"></div>
<ul class="smallbox1 toplist-icons">
<li class="smallhead">YY资源排行</li>
{$xml:flashlist file="toplist.xslt" setcache="0" type="2" maxnum="12" length="19" showcate="0" showdate="0" ellipsis="0" target="_blank"}
</ul>
<ul class="smallbox2 list-box">
{$xml:flashlist file="flashlist.xslt" setcache="0" type="0" classid="0" maxnum="14" length="35" showcate="1" showdate="1" datemode="MM-dd" ellipsis="0"}
</ul>
<ul class="smallbox3">
{$xml:flashlist file="imagetext.xslt" channelid="5" type="0" image="1" maxnum="2" eachline="1" length="23" strlen="0" width="162" height="110" ellipsis="0" target="_blank"}
</ul>
<div style="clear:both"></div>
</div>
</div>
<div class="mainrit">
<h3><span class="boxhead">推荐YY资源</span></h3>
<ul class="list-icons">
{$xml:flashlist file="toplist.xslt" setcache="0" type="1" maxnum="15" length="28" showcate="0" showdate="0" ellipsis="0"}
</ul>
</div>

<div style="clear:both"></div>
</div>
</div>
<div class="friendLinks">
<div id="friendLinkBox">
<h2>首页连接(首页连接日IP>15000,次页连接无流量限制,欢迎合作连接!) <a href="link/">更多链接...</a></h2>
<div id="friendLogoLinks">{$xml:friendlink id="friendlink" file="friendlink.xslt" setcache="0" islogo="1" maxnum="30" eachline="10" linkmode="1" type="0"}<div style="clear:both"></div></div>
<div style="clear:both;border-top:1px dotted #d1d7dc;height:0px;line-height:0px;font-size:0;"></div>
<div id="friendTextLinks">
<dl id="friendTextList">
{$xml:friendlink id="friendlink" file="friendlink.xslt" setcache="0" islogo="0" maxnum="40" eachline="10" linkmode="1" type="0"}</dl>
</div>
<div style="clear:both"></div>
</div>
<div class="abc" id="abcbox">{$xml:abcsearch file="abc.xslt" channelid="{$channelid}" default="2" forced="true"}</div>
</div>
<!--$include file="footer.html"-->

--------------------编程问答-------------------- 数据量加载太多 --------------------编程问答-------------------- 代码问题吧! 
你一次性加载那么多的数据  能不慢吗! --------------------编程问答-------------------- 图片太大 或者太多

选择异步加载 或者大图切割小图

滚动条加载。 --------------------编程问答--------------------    三楼,您有QQ吗  ?  我加您QQ你教我下 --------------------编程问答-------------------- 你贴的太乱
没心思看
--------------------编程问答-------------------- 一次加载太多东西了.显示肯定会慢些 --------------------编程问答-------------------- 用异步加载就可以了.看到哪里加载到哪里!
异步加载 --------------------编程问答--------------------
引用 7 楼 ynsky 的回复:
用异步加载就可以了.看到哪里加载到哪里!
异步加载


一点一点的加载嘛,这样用户用起来也不会觉得很大的问题 --------------------编程问答-------------------- --------------------编程问答-------------------- 路过,帮顶下 --------------------编程问答-------------------- 楼主把首页整整
貌似有很多不必要的东西哦
偶是这样想的 --------------------编程问答-------------------- 还可以呀,我这不是很慢,你是不是每一个小块都读了一次数据呀?不会是这样的吧 --------------------编程问答-------------------- 你这个网站加载这点数据怎么会慢呢,????,,
并且也没几幅图片,楼上说的图片大?多? 无语,,多吗???

主要看你后台是怎么读取数据的。比如有没有数据量大的循环(关键是嵌套循环)啊等等,优化一下~
你发的前端页面这点体现不出什么问题。
还有一个可能行就是js 的问题。 --------------------编程问答-------------------- ps:我刚刚打开的时候 不会慢~~~ --------------------编程问答-------------------- ps:还有一个可能性,服务器你用的是电信?联通?还是双线的?

如果服务器是电信的,,,而你自己的网络是联通的。。。。。那就有可能了~~


多方面检查一下吧 --------------------编程问答-------------------- 我这边打开不慢啊,就两秒,就全部显示出来了。 --------------------编程问答-------------------- 读取数据慢,检查数据库连接! --------------------编程问答-------------------- 我的速度也还可以! --------------------编程问答--------------------    不过有的时候他提示,  什么什么 请到IIS管理什么的  好像说超时 --------------------编程问答-------------------- Active Server Pages 错误 'ASP 0113' 

脚本超时 

/index.asp 

超过了脚本运行的最长时间。可以为 Server.ScriptTimeOut 属性指定新值或更改 IIS 管理工具中的相应值来更改此限制。

  你们看就是这种现象 --------------------编程问答-------------------- 我勒个去...我网络是联通的...压根就打不开...
帮顶..飘过... --------------------编程问答-------------------- --------------------编程问答-------------------- --------------------编程问答-------------------- 我做到网站也是 首页 几部分就读去几次数据哭  慢啊  求高手 QQ282447146
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,