📄 如何提高网页的效率(下篇).htm
字号:
——内容?SEO(搜索引擎优化)?UE(用户体验)?都...<BR>[引用提示]badnewfish引用了该文章, 地址: <A
href="http://www.cnblogs.com/badnewfish/archive/2007/11/29/977054.html">http://www.cnblogs.com/badnewfish/archive/2007/11/29/977054.html</A><BR> <A
onclick='return SetReplyAuhor("badnewfish")'
href="http://www.cnblogs.com/JustinYoung/archive/2007/11/28/speeding-up-web-site-yslow.html#post">回复</A> <A
onclick="GetQuote(977056);return false"
href="http://www.cnblogs.com/JustinYoung/archive/2007/11/28/speeding-up-web-site-yslow.html#post">引用</A> <A
title=查看该作者发表过的评论
href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=badnewfish"
target=_blank>查看</A> <A
id=AjaxHolder_Comments_CommentList_ctl28_DeleteLink
href="javascript:__doPostBack('AjaxHolder$Comments$CommentList$ctl28$DeleteLink','')"></A> <A
id=AjaxHolder_Comments_CommentList_ctl28_EditLink></A></DIV></DIV></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A title="permalink: 提高网页效率的准则"
href="http://www.cnblogs.com/JustinYoung/archive/2007/11/28/speeding-up-web-site-yslow.html#979468">#30楼</A> <A
name=979468></A>[TrackBack] 2007-12-01 16:52 | <A
id=AjaxHolder_Comments_CommentList_ctl29_NameLink
href="http://www.cnblogs.com/AllengWang/archive/2007/12/01/979466.html"
target=_blank>阿伦.NET</A><BR>
<DIV align=left>如何提高网页的效率(上篇)——提高网页效率的14条准则 <BR>[引用提示]阿伦.NET引用了该文章, 地址: <A
href="http://www.cnblogs.com/AllengWang/archive/2007/12/01/979466.html">http://www.cnblogs.com/AllengWang/archive/2007/12/01/979466.html</A><BR> <A
onclick='return SetReplyAuhor("阿伦.NET")'
href="http://www.cnblogs.com/JustinYoung/archive/2007/11/28/speeding-up-web-site-yslow.html#post">回复</A> <A
onclick="GetQuote(979468);return false"
href="http://www.cnblogs.com/JustinYoung/archive/2007/11/28/speeding-up-web-site-yslow.html#post">引用</A> <A
title=查看该作者发表过的评论
href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e9%98%bf%e4%bc%a6.NET"
target=_blank>查看</A> <A
id=AjaxHolder_Comments_CommentList_ctl29_DeleteLink
href="javascript:__doPostBack('AjaxHolder$Comments$CommentList$ctl29$DeleteLink','')"></A> <A
id=AjaxHolder_Comments_CommentList_ctl29_EditLink></A></DIV></DIV></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A
title="permalink: 本周链接列表(2007.11.26-2007.12.02)"
href="http://www.cnblogs.com/JustinYoung/archive/2007/11/28/speeding-up-web-site-yslow.html#979848">#31楼</A> <A
name=979848></A>[TrackBack] 2007-12-02 10:08 | <A
id=AjaxHolder_Comments_CommentList_ctl30_NameLink
href="http://www.cnblogs.com/anderslly/archive/2007/12/02/weeklylinks071202.html"
target=_blank>Anders Cui</A><BR>
<DIV align=left>本期链接列表的主要内容有:ASP.NET MVC Framework, MVP, 设计模式, Python, 英语学习
:)<BR>[引用提示]Anders Cui引用了该文章, 地址: <A
href="http://www.cnblogs.com/anderslly/archive/2007/12/02/weeklylinks071202.html">http://www.cnblogs.com/anderslly/archive/2007/12/02/weeklylinks071202.html</A><BR> <A
onclick='return SetReplyAuhor("Anders Cui")'
href="http://www.cnblogs.com/JustinYoung/archive/2007/11/28/speeding-up-web-site-yslow.html#post">回复</A> <A
onclick="GetQuote(979848);return false"
href="http://www.cnblogs.com/JustinYoung/archive/2007/11/28/speeding-up-web-site-yslow.html#post">引用</A> <A
title=查看该作者发表过的评论
href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=Anders+Cui"
target=_blank>查看</A> <A
id=AjaxHolder_Comments_CommentList_ctl30_DeleteLink
href="javascript:__doPostBack('AjaxHolder$Comments$CommentList$ctl30$DeleteLink','')"></A> <A
id=AjaxHolder_Comments_CommentList_ctl30_EditLink></A></DIV></DIV></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A
title="permalink: re: 如何提高网页的效率(下篇)——Use YSlow to know why your web Slow"
href="http://www.cnblogs.com/JustinYoung/archive/2007/11/28/speeding-up-web-site-yslow.html#980937">#32楼</A> <A
name=980937></A> 2007-12-03 13:28 | <A
id=AjaxHolder_Comments_CommentList_ctl31_NameLink target=_blank>woncs
[未注册用户]</A><BR>
<DIV align=left>关注您的BLOG很久,在这里学到了很多,也进步了许多,谢谢! <BR><BR>另,可否借贵BLOG问几个问题:
<BR><BR>1.网页的head和foot整站调用,include iframe
js三种调用方式哪种更有“性价比”,相对而言速度影响小,而且也不影响搜索引擎?
<BR><BR>2.页面上的FLASH,直接放入<object>代码和JS输出的方式,采用哪种为佳?
<BR><BR>3.把握不好标签何时何用,写的整页只有DIV UL LI SPAN A五种标签,这样合理不合理?
<BR><BR>请不吝赐教,谢谢!<BR> <A onclick='return SetReplyAuhor("woncs")'
href="http://www.cnblogs.com/JustinYoung/archive/2007/11/28/speeding-up-web-site-yslow.html#post">回复</A> <A
onclick="GetQuote(980937);return false"
href="http://www.cnblogs.com/JustinYoung/archive/2007/11/28/speeding-up-web-site-yslow.html#post">引用</A> <A
title=查看该作者发表过的评论
href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=woncs+%5b%e6%9c%aa%e6%b3%a8%e5%86%8c%e7%94%a8%e6%88%b7%5d"
target=_blank>查看</A> <A
id=AjaxHolder_Comments_CommentList_ctl31_DeleteLink
href="javascript:__doPostBack('AjaxHolder$Comments$CommentList$ctl31$DeleteLink','')"></A> <A
id=AjaxHolder_Comments_CommentList_ctl31_EditLink></A></DIV></DIV></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A
title="permalink: re: 如何提高网页的效率(下篇)——Use YSlow to know why your web Slow"
href="http://www.cnblogs.com/JustinYoung/archive/2007/11/28/speeding-up-web-site-yslow.html#981631">#33楼</A> <A
name=981631></A>[楼主] 2007-12-03 22:59 | <A
id=AjaxHolder_Comments_CommentList_ctl32_NameLink
href="http://justinyoung.cnblogs.com/" target=_blank>杨正祎</A><BR>
<DIV align=left>@woncs <BR>1:都不好,而应该用模板定这些内容,vs2005以上版本可以用masterpage
<BR>你所提到三种方法,SEO都十分不利。 <BR>2:object好像,至少我感觉。
<BR>3:显然不合理。你需要了解每个标签的语义,然后在合适的时候用它们。现在好像还没有什么书能明确的说明什么标签,什么语义。至少,我还没有见过。虽然有很多类似的,但是都是一些过时的说法。最好的办法是,网上的积累,和自己的理解。<BR> <A
onclick='return SetReplyAuhor("杨正祎")'
href="http://www.cnblogs.com/JustinYoung/archive/2007/11/28/speeding-up-web-site-yslow.html#post">回复</A> <A
onclick="GetQuote(981631);return false"
href="http://www.cnblogs.com/JustinYoung/archive/2007/11/28/speeding-up-web-site-yslow.html#post">引用</A> <A
title=查看该作者发表过的评论
href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e6%9d%a8%e6%ad%a3%e7%a5%8e"
target=_blank>查看</A> <A
id=AjaxHolder_Comments_CommentList_ctl32_DeleteLink
href="javascript:__doPostBack('AjaxHolder$Comments$CommentList$ctl32$DeleteLink','')"></A> <A
id=AjaxHolder_Comments_CommentList_ctl32_EditLink></A></DIV></DIV></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A
title="permalink: re: 如何提高网页的效率(下篇)——Use YSlow to know why your web Slow"
href="http://www.cnblogs.com/JustinYoung/archive/2007/11/28/speeding-up-web-site-yslow.html#981988">#34楼</A> <A
name=981988></A><A name=Post></A> 2007-12-04 10:39 | <A
id=AjaxHolder_Comments_CommentList_ctl33_NameLink target=_blank>woncs
[未注册用户]</A><BR>
<DIV align=left>@杨正祎 <BR><BR>感谢指点!<BR> <A
onclick='return SetReplyAuhor("woncs")'
href="http://www.cnblogs.com/JustinYoung/archive/2007/11/28/speeding-up-web-site-yslow.html#post">回复</A> <A
onclick="GetQuote(981988);return false"
href="http://www.cnblogs.com/JustinYoung/archive/2007/11/28/speeding-up-web-site-yslow.html#post">引用</A> <A
title=查看该作者发表过的评论
href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=woncs+%5b%e6%9c%aa%e6%b3%a8%e5%86%8c%e7%94%a8%e6%88%b7%5d"
target=_blank>查看</A> <A
id=AjaxHolder_Comments_CommentList_ctl33_DeleteLink
href="javascript:__doPostBack('AjaxHolder$Comments$CommentList$ctl33$DeleteLink','')"></A> <A
id=AjaxHolder_Comments_CommentList_ctl33_EditLink></A></DIV></DIV></DIV>
<STYLE>TD {
FONT-SIZE: 12px
}
.commentTextBox {
FONT-SIZE: 13px; FONT-FAMILY: Verdana
}
A.blue:visited {
COLOR: blue
}
A.blue:active {
COLOR: blue
}
A.blue:link {
COLOR: blue
}
A.blue:hover {
COLOR: blue
}
</STYLE>
<!--Beging Temp Save-->
<STYLE>.userData {
BEHAVIOR: url(#default#userdata)
}
</STYLE>
<DIV class=userData id=CommentsPersistDiv></DIV>
<SCRIPT type=text/javascript>
function pageLoad()
{
Sys.WebForms.PageRequestManager.getInstance().add_initializeRequest(handleInitializeRequest);
//Sys.WebForms.PageRequestManager.getInstance().add_endRequest(handleEndRequest);
}
function handleInitializeRequest(sender, args)
{
var prm = Sys.WebForms.PageRequestManager.getInstance();
var eid = args.get_postBackElement().id;
if (eid.indexOf("DeleteLink")>0)
{
args.get_postBackElement().innerHTML = "<font color='red'>正在删除...</font>";
}
else if (eid.indexOf("btnSubmit")>0)
{
document.getElementById("AjaxHolder_PostComment_ltSubmitMsg").innerHTML="正在提交...";
document.getElementById("AjaxHolder_PostComment_btnSubmit").disabled = true;
}
else if(eid.indexOf("refreshList")>0)
{
document.getElementById("AjaxHolder_PostComment_refreshList").innerHTML="<font color='red'>正在刷新...</font>";
}
}
function TempSave(ElementID)
{
try
{
CommentsPersistDiv.setAttribute("CommentContent",document.getElementById(ElementID).value);
CommentsPersistDiv.save("CommentXMLStore");
}
catch(ex)
{
}
}
function Restore(ElementID)
{
CommentsPersistDiv.load("CommentXMLStore");
document.getElementById(ElementID).value=CommentsPersistDiv.getAttribute("CommentContent");
}
</SCRIPT>
<!--Ene TempSave-->
<DIV id=divRefreshComments
style="FONT-SIZE: 12px; MARGIN-BOTTOM: 5px; MARGIN-RIGHT: 10px; TEXT-ALIGN: right"><A
id=AjaxH
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -