1 Star 1 Fork 2

Mooke / require

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

require

JavaScript代码加载器,支持同步、异步加载方式。 注意:需要使用http://访问运行,不支持C:\!

#使用方法 同步:require.include("js/jquery.min.js");
同步:require.include(["",""]);

异步:require.include("js/jquery.min.js",function(){ });
异步:require.include(["",""],function(){ });

同步:var obj = require("js/jquery.min.js");

#待实现的计划 1.实现加载、合并CSS文件。
2.实现服务器端合并多个脚本(根据文件大小决定合并数量),减少网络请求。
3.实现JS库合并为单文件加载。如:jquery-ui包含多个JS和CSS文件, 请求时服务端同时合并、缓存CSS和JS为单文件,客户端接收后再拆分。
4.支持本地路径下加载模块。(C:\test.html)

About

JavaScript代码加载器,支持同步、异步加载方式。 expand collapse
JavaScript
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
JavaScript
1
https://gitee.com/tes/require.git
git@gitee.com:tes/require.git
tes
require
require
master

Search