最大页面长度的浏览器限制 [英] Browser limitation with maximum Page length

查看:23
本文介绍了最大页面长度的浏览器限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在管理数据源中的html内容,并使用asp.net C#直接写在网页上.

We are managing html contents from datasource and directly write on the web pages using asp.net C#.

我们面临的问题是:在页面上没有显示完整的内容,但是当我们检查页面源并将其复制/粘贴到静态 html 页面时,所有内容都会显示.

Here we are facing the problem : On the page complete contents are not displaying but while we check the Page source and copy/paste it into a static html page all contents will be displayed.

浏览器是否对网页的最大长度有任何限制.

Is there any limitation of browser related to maximum length of a web page.

我用谷歌搜索,发现一个网页的限制应该是 10-30KB,但在同一个项目中,我们的页面长度高达 55 KB.

I googled and found that the limit of a web page should be 10-30KB but in the same project we have pages with length upto 55 KB.

有人可以帮我吗?

推荐答案

我最近一直在对非常大的文本文件的浏览器加载时间进行基准测试.以下是一些数据:

I've recently been benchmarking browser load times for very large text files. Here are some data:

IE -- 大约 35 兆
Firefox -- 死了大约 60 兆
Safari -- 死亡大约 60 兆
Chrome -- 死大约 50 兆

IE --dies around 35 megs
Firefox --dies around 60 megs
Safari --dies around 60 megs
Chrome --dies around 50 megs

同样,这是基本(如果大)英文文本文件的简单浏览器加载时间.一个奇怪的提示是 Firefox 在变得无响应之前似乎可以处理接近 60 兆,但它只在视口上显示 55.1 兆.(但是我可以按 ctrl-a 将所有 60 兆字节放到剪贴板上.)
当然,您的里程会有所不同,这都与网络延迟有关,如果您在谈论下载图片等,我们可能会看到巨大的差异.这仅适用于一个非常大的英文文本文件.

Again, this is simple browser load time of a basic (if large) English text files. One strange note is that Firefox seems to handle close to 60 megs before becoming non-responsive, but it only puts 55.1 megs out on the viewport. (However I can ctrl-a to get all 60 megs onto the clipboard.)
Naturally your mileage will vary, and this is all related to network latency, and we'll probably see vast differences if you're talking about downloading pictures etc. This is just for a single very large file of english text.

这篇关于最大页面长度的浏览器限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆