Coder Social home page Coder Social logo

firefox 标签页崩溃 about nhentai-helper HOT 8 OPEN

tsuk1ko avatar tsuk1ko commented on May 20, 2024
firefox 标签页崩溃

from nhentai-helper.

Comments (8)

Tsuk1ko avatar Tsuk1ko commented on May 20, 2024 2

跟流式关系不大……最终都要拿到 Buffer 生成 Blob 然后才能下载,避免不了要消耗大量内存的

没办法给一个 Stream 给浏览器下载

Edit: 后来发现有流式实现 StreamSaver.js,不过这个方法有点黑科技,有时间研究一下能不能配合 JSZip 用

from nhentai-helper.

Tsuk1ko avatar Tsuk1ko commented on May 20, 2024 1

Edit: 后来发现有流式实现 StreamSaver.js,不过这个方法有点黑科技,有时间研究一下能不能配合 JSZip 用

喜报:实现了流式压缩与下载

悲报:在 firefox 上由于不明原因无法使用

image

通过设置 network.cookie.cookieBehavior4 解决后

image

from nhentai-helper.

Tsuk1ko avatar Tsuk1ko commented on May 20, 2024

可能是内存不足

不过按理来说一般人应该够的吧……

我用 chrome 下这种200多页的单行本没有问题,峰值大概也就 2200MB

from nhentai-helper.

caoli5288 avatar caoli5288 commented on May 20, 2024

200+页的下过很多,但这个100%崩溃,试了几十次了,你试试呢?

是在compressing阶段崩溃的。

from nhentai-helper.

Tsuk1ko avatar Tsuk1ko commented on May 20, 2024

chrome 试过了没事,firefox 确实会崩

可能是因为这个单行本真的很大,每张图都有 3MB 左右,整本有 700+MB,现在一般 200+ 页的也就 100+MB

一共 224 张,压到快结束就崩了,这个应该是 firefox 的问题,我这边就无能为力了……

image

from nhentai-helper.

caoli5288 avatar caoli5288 commented on May 20, 2024

不是很懂js,有支持流式压缩的js库嘛

from nhentai-helper.

caoli5288 avatar caoli5288 commented on May 20, 2024

评价为:寄

from nhentai-helper.

IWSR avatar IWSR commented on May 20, 2024

Edit: 后来发现有流式实现 StreamSaver.js,不过这个方法有点黑科技,有时间研究一下能不能配合 JSZip 用

喜报:实现了流式压缩与下载

悲报:在 firefox 上由于不明原因无法使用

image

通过设置 network.cookie.cookieBehavior4 解决后

image

阿这,简直太搞笑了。没什么用的功能增加了哈哈哈。

from nhentai-helper.

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.