内容压缩支持brotli和deflate

This commit is contained in:
刘祥超
2021-09-29 20:12:27 +08:00
parent 8676f2711b
commit ca72b3c18b
23 changed files with 486 additions and 322 deletions

View File

@@ -25,4 +25,15 @@ function sortTable(callback) {
})
})
document.head.appendChild(jsFile)
}
}
function sortLoad(callback) {
let jsFile = document.createElement("script")
jsFile.setAttribute("src", "/js/sortable.min.js")
jsFile.addEventListener("load", function () {
if (typeof (callback) == "function") {
callback()
}
})
document.head.appendChild(jsFile)
}