七段

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

          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
          主站蜘蛛池模板: 舟曲县| 元谋县| 深圳市| 永昌县| 江永县| 屯门区| 韶关市| 方山县| 高淳县| 若羌县| 祁东县| 长宁县| 盐津县| 临沧市| 蓬溪县| 四川省| 自治县| 奉节县| 夏津县| 乌拉特中旗| 通城县| 穆棱市| 乾安县| 怀仁县| 石泉县| 新宁县| 林甸县| 白银市| 乐陵市| 基隆市| 蒙阴县| 平利县| 萝北县| 崇阳县| 察雅县| 图木舒克市| 吉安县| 桃源县| 台山市| 沅陵县| 米易县|