Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Browser limitation with maximum Page length

Tags:

browser

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

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.

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.

Can anyone help me out?

like image 258
Gaurav Arora Avatar asked Jul 02 '09 20:07

Gaurav Arora


People also ask

Is there a limit to how long a Web page can be?

Google Chrome allows the maximum length of the URL to be of the size 2MB (2,097,152 characters). In Firefox the length of the URL can be unlimited but practically after 65,536 characters the location bar no longer displays the URL.

What is the maximum size of HTML?

Complete HTML/CSS Course 2022 For Google Chrome, the maximum allowable width and height are 32,767 pixels and the maximum allowable area is 268,435,456 pixels.

How much data can a browser handle?

The global limit is calculated as 50% of free disk space. In Firefox, an internal browser tool called the Quota Manager keeps track of how much disk space each origin is using up, and deletes data if necessary. So if the free space on your hard drive is 500 GB, then the total storage for a browser is 250 GB.


2 Answers

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

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

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.

like image 196
Leo Lansford Avatar answered Oct 20 '22 19:10

Leo Lansford


The limits (if they only exist) are higher than 50KB:

$ wget --quiet "http://www.cnn.com" -O- | wc -c
99863

I wouldn't believe there's any particular constant limit for page size. I would guess it rather depends on the memory size the web browser process can allocate.

like image 27
Grzegorz Oledzki Avatar answered Oct 20 '22 19:10

Grzegorz Oledzki