/esl

ecomfe standard loader

Primary LanguageJavaScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

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 vs RequireJS

  • 具有更小的体积 (Smaller)
  • 具有更高的性能 (Higher performance)
  • 不支持在非浏览器端使用 (Browser only)
  • 尚未支持以下配置项:shim (shim is not supported)
  • 支持noRequests指定无需请求的模块 (noRequests is supported)

ESL的配置项 (CONFIGURATION OPTIONS)

查看 ESL的配置文档

See Configuration Options

CDN

当前版本的CDN引用:(latest)

<!-- normal -->
<script src="http://s1.bdstatic.com/r/www/cache/ecom/esl/1-8-2/esl.js"></script>

<!-- min -->
<script src="http://s1.bdstatic.com/r/www/cache/ecom/esl/1-8-2/esl.min.js"></script>

<!-- source -->
<script src="http://s1.bdstatic.com/r/www/cache/ecom/esl/1-8-2/esl.source.js"></script>

过往版本

Old version

体积对比 (FILE SIZES)

uglifyjs -mc + gzip

  • esl 1.8.2 normal 3487 bytes
  • esl 1.8.2 min 3208 bytes
  • requirejs 2.1.11 6289 bytes

性能对比 (PERFORMANCE)

查看 wiki文档

See wiki page

扩展阅读 (SEE ALSO)