lobe-chat icon indicating copy to clipboard operation
lobe-chat copied to clipboard

[Request] 建议可以优化下请求数量和体积

Open kaikai1221 opened this issue 1 year ago • 5 comments

🥰 需求描述 | Feature Description

image 一个页面500多个请求有点吓人,页面会转好久

🧐 解决方案 | Proposed Solution

是不是可以清理下无用代码,合并请求或者不要用过多的第三方很重的库

📝 补充信息 | Additional Information

No response

kaikai1221 avatar Dec 25 '23 14:12 kaikai1221

👀 @kaikai1221

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

lobehubbot avatar Dec 25 '23 14:12 lobehubbot

你可以具体看下每个请求的内容,大部分应该是依赖 shikiji 的语言高亮服务的文件。

arvinxx avatar Dec 25 '23 15:12 arvinxx

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


You can look specifically at the content of each request. Most of them should be files that rely on shikiji's language highlighting service.

lobehubbot avatar Dec 25 '23 15:12 lobehubbot

你可以具体看下每个请求的内容,大部分应该是依赖shikiji的语言高亮服务的文件。

是的,我看大多是这个和多语言的一些东西还有的应该是ui组件资源的请求,第一词打开的时候会请求全部页面的全部语言配置即使我就只访问了一个页面,导致在第一次打开的时候不停的发送请求

kaikai1221 avatar Dec 26 '23 06:12 kaikai1221

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


You can look at the content of each request in detail. Most of them should be files that rely on shikiji's language highlighting service.

Yes, I think most of them are this and multi-language things, and some should be requests for UI component resources. When the first word is opened, all language configurations of all pages will be requested, even if I only visit one page, resulting in When it is opened for the first time, it keeps sending requests.

lobehubbot avatar Dec 26 '23 06:12 lobehubbot

✅ @kaikai1221

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

lobehubbot avatar Feb 15 '24 00:02 lobehubbot