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

如何做到快速预览 #344

Open
wangzhijun6622 opened this issue Sep 7, 2024 · 1 comment
Open

如何做到快速预览 #344

wangzhijun6622 opened this issue Sep 7, 2024 · 1 comment

Comments

@wangzhijun6622
Copy link

请问:

  1. 如果我想预加载图片,有办法吗?
  2. 如果不能预加载 我想先用小图展示,下载完原图再替换,应该怎么做?
@mirari
Copy link
Owner

mirari commented Sep 8, 2024

预加载可以用提前创建img标签但不展示的方式实现,后续展示时会自动读缓存

缩略图形式例子里有
https://codepen.io/mirari/pen/Vwpryax

下载完再替换这个原生viewerjs肯定不支持

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

2 participants