七段

          無論怎樣,請讓我先感謝一下國家。

          BlogJava 首頁 新隨筆 聯系 聚合 管理
            35 Posts :: 2 Stories :: 7 Comments :: 0 Trackbacks

          I was told something about js module framework two years ago. But without a deep dive into it, so that I have to ride out large bundles of js files in a mess on our projects for a long time. After kejun’s YUI presentation on D2 2009, I thought that it’s time to change.

          Why use js module?

          1, better js organization, readable + flexible + dependencies ordering

          2, better performance, asynchronize loading JIT

          How we did it before?

          1, inline script in jsp : hard to unittest, make the file looks tedious and ugly

          2, separated js script file: bad organization, too many ugly import tag <script>

          What is the existed solution?

          1, YUI module: http://developer.yahoo.com/yui/yuiloader/

          2, Jawr: a tunable packaging solution for Javascript and CSS written in java

          3, jQuery getSscript: http://ejohn.org/blog/degrading-script-tags/

          4, jspkg: http://jspkg.sourceforge.net/docs/index.html

          5, module.js http://ajaxian.com/archives/modulesjs-a-new-stand-alone-javascript-module-loader

           to do ...

          posted on 2010-01-04 23:41 sevenduan 閱讀(1571) 評論(0)  編輯  收藏 所屬分類: JavaScript
          主站蜘蛛池模板: 望谟县| 清苑县| 大名县| 扎兰屯市| 明光市| 民乐县| 惠安县| 蓬莱市| 西林县| 隆回县| 扶风县| 塔城市| 庄浪县| 凯里市| 涪陵区| 龙海市| 三都| 淳化县| 达孜县| 沈丘县| 仙游县| 红桥区| 监利县| 台州市| 独山县| 昔阳县| 治县。| 塘沽区| 巩义市| 青海省| 大同县| 长葛市| 芷江| 岳西县| 都昌县| 庆元县| 安化县| 平远县| 渝中区| 延津县| 临沭县|