High Performance JavaScript作者:Nicholas C. Zakas出版日期:March 23, 2010頁數:240ISBN:978-0596802790本書永久連結:http://www.ppurl.com/2010/04/high-performance-javascript.html (這裡可以下載電子版) Product DescriptionIf you’re like most developers, you rely heavily on
[from http://blog.joesgoals.com/]I’d like to take a moment to introduce something I’ve been working on a while: TaffyDB.TaffyDB is a free (opensource) JavaScript database for Ajaxapplications. It works by creating a thin (under 10K) data layer
如果對用戶端動態互動要求比較高,在DOM裡需要頻繁動態增加元素,那麼可能會遇到效能問題,那麼就有可能用到DocumentFragment了,具體看看下面的例子,效能差別還是挺大的。Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//
在瀏覽器上,某些事件的觸發是非常頻繁的,幾乎是毫秒級的,最典型的就是document.onmousemove,而這麼頻繁的事件,往往都是弊大於利的。今天看到一個很好的解決辦法,這裡稍加改進成通用的方法,雖不能徹底解決問題,但是可以有效緩解,而且簡單易行,核心代碼如下: //可進一步擴充為支援可傳參的fn var onFooEndFunc = function(fn) { var delay = 50; // 根據實際情況可調整延時時間 var
IntroductionJavascript has evolved so much that it has a great influences to the web development. I stumbled upon a website called chrome experiements. It hs a lot of great javascript experiements that are meant for Chrome because Chrome has a great
JavaScript is an object-oriented scripting language that lets you make your pages interact with your readers. It can also can make your pages feel more dynamic and give feedback to your user. Therefor we creat this great roundup which contained the 3