What is the maximum number of elements or file size for an HTML document?

I am working with an HTML file that has elements> 71K dom and has a size of about 2.3Mb.

Now that I fully understand why this is so slow, can someone provide examples / studies regarding the maximum number of elements and file size that may be enough for one HTML document, which can help me outline my case?

thanks

Edit - I understand that there is no definite limit, I am looking for examples / evidence from reputable sources to show that this file is stupid.

+6
source share
1 answer

I do not have any research or a definite answer for you, but I think that you will not be able to find them. The main problem is that the "reasonable" is subjective. In addition, a document that has a β€œreasonable” speed for you in one browser can be much slower in another (thnk about speed differences between only major browsers like IE, firefox, chrome and safari).

You also need to think about how fast the network connection is for users trying to download your html document. I am sure that most people have fast enough Internet now, because several MB files are not big, but not everyone does, and even for those who have fast Internet, if your html starts to rise to a couple of hundred MB or GB +?

There are many variables that will affect how slowly your HTML document loads / renders, and I think that ultimately the only way to justify is that your users are willing to put up with it. Just my 2cents.

+3
source

Source: https://habr.com/ru/post/897455/


All Articles