alibaba/patchjs

Name: patchjs

Owner: Alibaba

Description: Patch.js is a incremental (character level) script loader for mobile web.

Created: 2018-05-21 06:33:12.0

Updated: 2018-05-24 08:49:30.0

Pushed: 2018-05-24 08:49:29.0

Homepage: https://patchjs.github.io/

Size: 12

Language: null

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Website

https://patchjs.github.io/

Our new GitHub repo

https://github.com/patchjs

Key Future
Loader
Reference
ipt src="./patchjs-loader/2.0.0/websqldb.js"></script>
ipt src="./patchjs-loader/2.0.0/index.js"></script>
API
hjs.config({
th: 'http://static.domain.com/path/to/',
che: true,
crement: true,
rsion: '0.1.0'
oad('index.css').load('common.js').wait().load('index.js', function (url, fromCache) {
 fromCache 

More

Nginx Configure
tion /static/ {
patchjs on;
patchjs_max_file_size 1024;

More

Webpack Configure
PatchjsWebpackPlugin = require('patchjs-webpack-plugin');

le.exports = {
ugins: [
new PatchjsWebpackPlugin({
  increment: true,
  path: 'http://static.domain.com/path/to/'
})


More

License

Patch.js is MIT licensed.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.