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

使用全屏设置后 每次进vsc页面初始化都会有图片闪现 #328

Closed
MuuuShin opened this issue Nov 2, 2022 · 13 comments
Closed

Comments

@MuuuShin
Copy link

MuuuShin commented Nov 2, 2022

如图
image
image

@MuuuShin
Copy link
Author

MuuuShin commented Nov 2, 2022

这是全屏实现的副作用吗(
感觉每次开vsc闪这么一下怪怪的

@shalldie
Copy link
Owner

shalldie commented Nov 2, 2022

hh 是副作用,暂时没办法 😂😂
我其实也看到了,感觉就开启的时候闪一下还能够接受。

原因是资源的加载有先后、耗时不同。
后面我看看是否有方式可以优化吧

@MuuuShin
Copy link
Author

MuuuShin commented Nov 2, 2022

加油加油

@suiyun39
Copy link
Collaborator

suiyun39 commented Nov 3, 2022

@MuuuShin 要不试试本地文件? 本地文件会被转换成 base64 插入到 css 中, 是随着 css 文件一起加载的, 应该不会有闪烁的问题

@MuuuShin
Copy link
Author

MuuuShin commented Nov 3, 2022

@MuuuShin 要不试试本地文件? 本地文件会被转换成 base64 插入到 css 中, 是随着 css 文件一起加载的, 应该不会有闪烁的问题

已经是本地文件了

@suiyun39
Copy link
Collaborator

suiyun39 commented Nov 3, 2022

@MuuuShin 提供一下图片文件吧, 打成 zip 扔到这个 issue 下

@MuuuShin
Copy link
Author

MuuuShin commented Nov 3, 2022

跟图片无关吧?我试了好几张图均是闪现

@suiyun39
Copy link
Collaborator

suiyun39 commented Nov 3, 2022

@MuuuShin
大概是搞清楚了, 工作区是异步加载的, 导致初始启动时没有元素盖在 body 上.
这个问题倒是可以用 :has 选择器解决, 但是当前版本的 vscode, chromium 版本是 102, :has 选择器在 105 版本添加的支持😂

只要 vscode 发起更新, 一切都会好起来的

@shalldie
Copy link
Owner

shalldie commented Nov 3, 2022

看了下 :has nb 啊,,确实可行,那就等更新吧~

@MuuuShin
Copy link
Author

MuuuShin commented Nov 3, 2022

感谢,看来目前只能等待了

@shalldie shalldie closed this as completed Nov 3, 2022
@jerrycool123
Copy link

It seems that this problem has disappeared in the latest version of VSCode.
image
image

@MuuuShin
Copy link
Author

It seems that this problem has disappeared in the latest version of VSCode. image image

Yes, it doesn't blink in the initialization, but it still has a problem -- it loses transparency during initialization
see #374

@shalldie
Copy link
Owner

shalldie commented Jun 8, 2023

久等,发布了 1.2.11 修复了该问题 🎉🎉

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