3
GitHub - ecomfe/esl: enterprise standard loader
source link: https://github.com/ecomfe/esl
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
ESL (Enterprise Standard Loader)
ESL是一个浏览器端
、符合AMD
的标准加载器,适合用于现代Web浏览器端应用的入口与模块管理。
ESL is a browser-only, amd-compliant module loader. In modern web applications, it is normally used in startup script or as a module manager.
通过右键另存
的方式下载ESL (Download by Save As
):
了解AMD (About AMD)
ESL vs RequireJS
- 体积更小 (Smaller)
- 性能更高 (Higher performance)
- 更健壮 (More Robustness)
- 不支持在
非浏览器端
使用 (Browser only) - 依赖模块
用时定义
(Lazy define)
ESL的配置项 (CONFIGURATION OPTIONS)
查看 ESL的配置文档
当前版本的CDN引用:(latest)
<!-- compressed --> <script src="http://s1.bdstatic.com/r/www/cache/efe/esl/2-1-6/esl.js"></script> <!-- compressed(https) --> <script src="https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/efe/esl/2-1-6/esl.js"></script> <!-- source --> <script src="http://s1.bdstatic.com/r/www/cache/efe/esl/2-1-6/esl.source.js"></script>
体积对比 (FILE SIZES)
uglifyjs -mc + gzip
esl 2.1.6
3.5krequirejs 2.3.5
6.5k
性能对比 (PERFORMANCE)
查看 wiki文档
See wiki page
了解ESL的进化史 (CHANGE LOG)
错误信息 (ERROR MESSAGE)
阅读 ESL 中的错误提示信息 一文,以帮助您使用 ESL 时进行错误追查与调试。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK