自动将脚本放在页面底部
摘要:Fast page loading by moving ASP.NET AJAX scripts after visible contentASP.NET ScriptManager control has a property LoadScriptsBeforeUI, when set to false, should load all AJAX framework scripts after ...
阅读全文
posted @
2009-01-20 14:23
Ray Wu
阅读(499)
推荐(0) 编辑
Asp.net页面静态内容自动从不同域名加载--极大提升客户端加载速度
摘要:Loading static content in ASP.NET pages from different domain for faster parallel downloadGenerally we put static content (images, css, js) of our website inside the same web project. Thus they get do...
阅读全文
posted @
2009-01-20 14:19
Ray Wu
阅读(495)
推荐(0) 编辑
使用闭包优雅的为setInterval(setTimeout)传递参数
摘要:闭包的一个常见用法是在执行函数之前为要执行的函数提供参数。例如:将函数作为 setInterval 函数的第一个参数,这在 Web 浏览器的环境下是非常常见的一种应用。 setInterval用于有计划地执行一个函数,要执行的函数是其第一个参数,其第二个参数是以毫秒表示的执行间隔。也就是说,当在一段代码中使用 setInterval时,要将一个函数的引用作为它的第一个参数,而将以毫秒表示的时间值作...
阅读全文
posted @
2009-01-06 13:36
Ray Wu
阅读(2751)
推荐(0) 编辑