Skip to content

silentzone/esl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
  • 依赖模块用时定义 (Lazy define)
  • 支持noRequests指定无需请求的模块 (noRequests is supported)
  • 尚未支持以下配置项:shim (shim is not 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-8/esl.js"></script>

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

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

过往版本

Old version

体积对比 (FILE SIZES)

uglifyjs -mc + gzip

  • esl 1.8.6 normal 3.4k
  • esl 1.8.6 min 3.1k
  • requirejs 2.1.5 6.2k

性能对比 (PERFORMANCE)

查看 wiki文档

See wiki page

扩展阅读 (SEE ALSO)

About

ecomfe standard loader

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.8%
  • Other 0.2%