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

在编辑文章时,会默认加载所有图片,大图多了导致编辑时很慢 #1727

Open
ScarletDor opened this issue Feb 7, 2024 · 5 comments · May be fixed by #1735
Open

在编辑文章时,会默认加载所有图片,大图多了导致编辑时很慢 #1727

ScarletDor opened this issue Feb 7, 2024 · 5 comments · May be fixed by #1735
Labels
enhancement Enhancement request

Comments

@ScarletDor
Copy link

点击编辑文章,因为文章包含很多图片,会卡住一段时间。查看了一下是全屏预览窗口(按钮)加载了图片。

可否使他不再自动加载预览,因为图片多的时候不仅消耗流量而且加载很慢(前端使用了懒加载所以加载很快而且节省流量),感谢

@ScarletDor ScarletDor added the enhancement Enhancement request label Feb 7, 2024
@sy-records
Copy link
Member

前端的懒加载也不是Typecho自带的吧,扩展一下编辑器页面,加上懒加载就行?

@ScarletDor
Copy link
Author

前端的懒加载也不是Typecho自带的吧,扩展一下编辑器页面,加上懒加载就行?

是呀,我的问题就是怎样让编辑器的预览图片加上懒加载,这样就可以解决加载卡住的问题了qaq

@ScarletDor
Copy link
Author

@jrotty 是不是可以安心等1.3版本了qaq

@jrotty
Copy link
Contributor

jrotty commented Feb 18, 2024

@ScarletDor 得看我的提交是否会被合并🙂

@ScarletDor
Copy link
Author

@ScarletDor 得看我的提交是否会被合并🙂

不管他了我先用上噗噗噗

jrotty added a commit to jrotty/typecho that referenced this issue Feb 19, 2024
后台文章编辑器预览文章图片追加loading="lazy"支持浏览器原生懒加载加载
typecho#1727
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants