Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 有个css加载了42s,是否可以把他注释掉呢 #1444

Closed
3 tasks done
LiberatorHg opened this issue May 12, 2023 · 4 comments
Closed
3 tasks done

[Bug] 有个css加载了42s,是否可以把他注释掉呢 #1444

LiberatorHg opened this issue May 12, 2023 · 4 comments

Comments

@LiberatorHg
Copy link

反馈须知

⚠️ 注意:不遵循此模板的任何帖子都会被立即关闭。

请在下方中括号内输入 x 来表示你已经知晓相关内容。

  • 我确认已经在 常见问题 中搜索了此次反馈的问题,没有找到解答;
  • 我确认已经在 Issues 列表(包括已经 Close 的)中搜索了此次反馈的问题,没有找到解答。
  • 我确认已经在 Vercel 使用教程 中搜索了此次反馈的问题,没有找到解答。

描述问题
我部署在服务器上,用chrome和edge的时候加载这个css很慢。

截图
image

一些必要的信息

  • 系统:[windows 11]
  • 浏览器: [chrome, edge]
  • 版本: [最新版]
  • 部署方式:[docker+服务器部署]
@Yidadaa
Copy link
Collaborator

Yidadaa commented May 12, 2023

@MrrDrr
Copy link
Contributor

MrrDrr commented May 12, 2023

https://fonts.proxy.ustclug.org/css2?family=Noto+Sans+SC:wght@300;400;700;900&display=swap
我也遇到了这个问题,可能ustclug的这个服务还是不稳定。但目前已经恢复了,ustclug已经把自己的服务301重定向了到了原始的google接口。不过google接口在国内的稳定性也是emmmmm

建议把字体下载到仓库里,一起部署。或者就用系统默认的字体。

@yorunning
Copy link
Contributor

可以考虑用nextjs的Font优化,这是通过在编译时下载字体,生产环境不用外链字体了。但下载字体还是通过google的网站,如果使用vercel部署没问题,但用docker部署如果网络连通性不好可能存在下载超时。还没找到next/font替换下载端点的配置项。

@Yidadaa
Copy link
Collaborator

Yidadaa commented May 13, 2023

@yorunning next font 的字体优化设置之后不对中文字体生效,没什么用。

Yidadaa added a commit that referenced this issue May 14, 2023
Endlessworld pushed a commit to Endlessworld/ChatGPT-Next-Web that referenced this issue May 17, 2023
Endlessworld pushed a commit to Endlessworld/ChatGPT-Next-Web that referenced this issue May 17, 2023
jinker pushed a commit to jinker/ChatGPT-Next-Web that referenced this issue Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants