Skip to content

A Sea.js plugin for collecting HTTP requests and sending all at once

License

Notifications You must be signed in to change notification settings

seajs/seajs-flush

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

seajs-flush

A Sea.js plugin for collecting HTTP requests and sending all at once

Install

Install with spm:

$ spm install seajs/seajs-flush

Usage

<script src="path/to/sea.js"></script>
<script src="path/to/seajs-combo.js"></script>
<script src="path/to/seajs-flush.js"></script>

<script>
seajs.use(['a', 'b'], function(a, b) {
  // ...
})

seajs.use(['c', 'd'], function(c, d) {
  // ...
})

// The combined request is http://test.com/path/to/??a.js,b.js,c.js,d.js
seajs.flush()
</script>

For more details please visit 中文文档

About

A Sea.js plugin for collecting HTTP requests and sending all at once

Resources

License

Stars

Watchers

Forks

Packages

No packages published