195 Chars To Help Lazy Loading
Update removed named function expression Update I wrote events letters in the wrong place, please use the latest script We have talked many times about performances, and not only here. One common technique to speed up a generic online page is the lazy loading. For lazy loading I mean: runtime dependencies resolution via script injection, preferably including all dependencies we need in a shot rather than script after script Google comments style, where code is evaluated when required but the size is still there namespaced strings, an example I have explained via code in Ajaxian whatever else, because sometimes we need this or that library only in certain conditions What Is The Problem If we would like to widely adopt this lazy load pattern, we should be aware about a " little detail ": Firefox < 3.6 does not support document.readyState , an historically valid Internet Explorer feature adopted in HTML5 and present in basically every other browsers. We can find the readySta...