Git Product home page Git Product logo

Comments (4)

leon-kfd avatar leon-kfd commented on August 27, 2024

1、当前在线版是会把当前背景图缓存都service worker,第二次进入会先展示缓存的这张,当随机图加载完再切换(插件版未发布)
2、使用本地图片暂时不考虑,浏览器并不能直接读取本地文件,虽然可以把图片先转为base64然后存到localStorage,但浏览器localStorage的上限为5M,考虑到当前很多高清图都有可能超过这个限制,所以并不想做
3、当前自定义图片可以先把图片上传到cos,然后指定网络路径即可(这种也能被service worker缓存)

from dashboard.

subframe7536 avatar subframe7536 commented on August 27, 2024

emmm...indexDB应该也可以存吧
这个是我之前在用的,源码

from dashboard.

leon-kfd avatar leon-kfd commented on August 27, 2024

IndexDB也是一种方案,后面有空可以研究一下。感谢反馈

from dashboard.

leon-kfd avatar leon-kfd commented on August 27, 2024

Done.

from dashboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.