sunpeng
Results
issues of
sunpeng
docx/lib/index.js 中的这一行: typeof window.setImmediate=="undefined"&&(window.setImmediate=function(i,...e){setTimeout(()=>i(e))}) 会在 pptx 渲染时多次调用,造成渲染缓慢,10M文件 7S以上。 预先打补丁如下可以解决,但是希望 官方包解决这个问题。 (function () { // 如果浏览器原生支持 requestIdleCallback,则优先使用它 if (typeof window.setImmediate === "undefined") { if (typeof window.requestIdleCallback === "function") { // 优先使用...