A Sea.js plugin for collecting HTTP requests and sending all at once
Install with spm:
$ spm install seajs/seajs-flush
<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 中文文档