开发者

Ajax returned data size

Been searching for some info on how much data an ajax call can receive/handle and haven't found anything.

The scenario is a common one: a call to the back-end to retrieve some rows from a database. The call can r开发者_如何学Goeturn any number of rows. The question is, how much data can I safely return to the front end?

Hope someone could shed some light on the subject.


The user can digest far fewer rows than you can safely return. Either page the data for the user's benefit or provide searching/filtering options.

For a real answer, it's going to vary considerably for each browser, especially for mobile users, and depend a lot on each user's bandwidth and hardware. This is one of those things where if you have to ask, you're doing it wrong.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜