tiny-engine icon indicating copy to clipboard operation
tiny-engine copied to clipboard

🐛 [Bug]: 发布生产环境后、画布非常卡顿,画布的canvas.js 打包成base64字符插入了iframe,导致解析时间过长,手动更改编译产物后。生产环境变得流畅,该问题影响低代码使用

Open 1degrees opened this issue 8 months ago • 5 comments

Environment

mac os 12.7.6

Version

latest

Version

latest

Link to minimal reproduction

一、低代码引擎平台打包后,画布区域的Iframe 的srcdoc 会塞入整个canvas 编译后的base64字符产物,整个字符大小高达3MB,导致Iframe 解析时间超长,解析时长高达12s(mac pro 2020 intel 顶配)

Step to reproduce

一、画布区域的Iframe 的srcdoc 会塞入整个canvas 编译后的base64字符产物,整个字符大小高达3MB,导致Iframe 解析时间超长,解析时长高达12s

Image Image

What is expected

一、希望编译后iframe 的 srcdoc 中的canvasScript 这个地址以编译后的链接插入其中

Image

What is actually happening

No response

What is your project name

二开项目

Any additional comments (optional)

No response

1degrees avatar Apr 01 '25 08:04 1degrees

Bot detected the issue body's language is not English, translate it automatically.


Title: 🐛 [Bug]: After the production environment is released, the canvas is very lagging. The reason has been found. I don’t know how to change it yet. After manually changing the compiled product. Production environment becomes smooth, and this problem seriously affects low-code usage

Issues-translate-bot avatar Apr 01 '25 08:04 Issues-translate-bot

#1321 已去除 base64 转换,后续再优化成引用链接的形式。

chilingling avatar Apr 29 '25 01:04 chilingling

Bot detected the issue body's language is not English, translate it automatically.


#1321 The base64 conversion has been removed and is subsequently optimized to the form of a reference link.

Issues-translate-bot avatar Apr 29 '25 01:04 Issues-translate-bot

请问下这个问题有进展吗

jizai1125 avatar Nov 10 '25 09:11 jizai1125

Bot detected the issue body's language is not English, translate it automatically.


I would like to ask if there is any progress on this issue?

Issues-translate-bot avatar Nov 10 '25 09:11 Issues-translate-bot