美文网首页马文的地下室
学习笔记《RequireJS》

学习笔记《RequireJS》

作者: 马文Marvin | 来源:发表于2016-11-20 22:57 被阅读13次

《RequireJS History》 中 James Burke 把当初创建 require.js 的历程写的非常的清晰,事物的形成和发展的关键是:

There was enough break down in communication that it made it difficult to continue discussing AMD on the CommonJS list. However, there were enough of us web developers that still saw value in it, and there was still some API work to be done around loader plugins and callback-require that the amd-implement email list and amdjs Github group were formed to continue those discussions.

Through the amd-implement list, the callback-require and loader plugin APIs got more definition and a set of unit tests. More AMD implementations were made. Dojo was already in a code conversion process to use AMD, and other people like MooTools and EmbedJS picked it up. AMD loaders gained traction in the jQuery community among those that wanted modular JS loading capabilities.

AMD has a healthy ecosystem around it now. I continue to help push AMD forward by providing a solid implementation in RequireJS, and making sure it fits well with the web.

James Burke 今年结束了其在 Mozilla 的七年工作,搬去温哥华做一个教育类 APP,贴一下离职信,Facebook 用H5写 iOS 的惨痛经历经常被人提起,其实 Mozilla 用H5写 OS 的经历,也是极其悲壮的:

After joining Mozilla Messaging just over seven years ago, I start a new job later this month. I am thankful for Alex's introduction to David that led to the Mozilla job.

I moved up to Vancouver to experiment with web-based messaging. That led to a few experiments at Mozilla, most recently the Firefox OS email app front end. However, all the experiments I worked on at Mozilla were eventually shut down. It is time for me to try working on a different kind of project.

I will be cheering on the efforts at Mozilla to improve the browser, and integrate web content better with native platforms via features like service workers and web manifests. I would like to see first class placement of web experiences on native platforms that work well with background updates, offline use. A Mozilla-infused Android distribution with web content front and center, some secure messaging and ties to local communities would be neat to see.

The web rendering developments in Servo are exciting too. Do you want to learn a neat language and help them out? Check out the first bugs list. The Rust and Servo communities are really great.

While I appreciate the value of platform work, it is more work for me than the flow I feel when building on web apps. So I am off to work on a web app that helps educators organize their classes. I still plan to do some light open source work on my own time, make sure I keep up maintenance releases for RequireJS related tools. But I will be busy with an exciting new job, and I will not have a lot of left over energy for a while. I will be staying in Vancouver.

Thank you Mozilla, and the people I worked with, for seven years. It changed my life. I recommend working at Mozilla particularly if you are a platform or systems developer. Or, just contributing in some way to support the great work of the Mozilla Foundation.

阮一峰写过一个系列文章,在细节上已经把 RequireJS 介绍的非常的详细,瞬间降低了 require.js 的学习成本,后文便不再赘述了:

Javascript模块化编程(一):模块的写法
Javascript模块化编程(二):AMD规范
Javascript模块化编程(三):require.js的用法

相关文章

  • AngularJS+RequireJS+AngularAMD实现

    2前两节笔记中学习了requireJs的基本用法,以及requireJs和AngularJs组合使用的方法,但是项...

  • 学习笔记《RequireJS》

    《RequireJS History》 中 James Burke 把当初创建 require.js 的历程写的非...

  • requireJs学习笔记

    加载JavaScript文件 index.html RJ(require.js)是一个以相对于baseUrl的地址...

  • requirejs学习笔记

    requirejs 解决两个问题: 1.实现js文件的异步加载,避免网页失去响应; 2.管理模块之间的依赖性,便于...

  • requireJs学习笔记(一)

    概念 优势 防止js加载阻塞页面渲染 使用程序调用方式加载js API define 定义模块 require 加...

  • IE9 不支持 base 标签

    最近在学习使用 requirejs,config 的配置中有一个baseUrl代表 requirejs 加载 js...

  • requireJS学习

    requireJS requireJS也可以用Seajs写法,不建议,因为思想冲突,代码风格不再是加载前置了 1:...

  • Requirejs常用配置和应用

    requirejs、require方法冲突 如果加载了多个requirejs脚本,每个requirejs会判断是否...

  • 模块化

    RequireJS官网:www.requirejs.org 为什么使用RequireJS 1、有效的防止变量冲突2...

  • RequireJS模块化

    RequireJS官网:www.requirejs.org 为什么使用RequireJS1、有效的防止变量冲突2、...

网友评论

    本文标题:学习笔记《RequireJS》

    本文链接:https://www.haomeiwen.com/subject/rtmypttx.html