how much data can javascript in the browser hold?

前端 未结 4 1338
猫巷女王i
猫巷女王i 2020-12-30 07:42

I have created a JSFiddle to see how much data I can push into my browser.

The link is http://jsfiddle.net/GWxAk/

The code is simple. It\'s just trying to p

4条回答
  •  天涯浪人
    2020-12-30 08:27

    On a 32-bit machine your upper limit will always be 4GB, no if ands or buts. In practice, it will be wildly different machine to machine (not unusual to have 10+ tabs open)

    Best way to go: keep only the data your user is actively working on or anything you can't quickly retrieve from the server handy. Everything else, get when the user asks for it.

提交回复
热议问题