473,803 Members | 3,913 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disable DOM construction


Hi,

We need to generate a huge HTML page (only TABLE/TR/TD structure), for
a size of 5 Mo. The problem is when IE receive this html source, it
try to build a DOM with it. As result, it could be very long to
display the HTML page to the client.

Could we disable the DOM construction in IE?

Thanks!

Jul 23 '05 #1
8 1779


Rick wrote:
Could we disable the DOM construction in IE?


If you disable scripting in IE then it does not build a DOM.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2

Thanks but we don't want to disable Javascript for all the pages in our
site, but only for this specific page...

Thx

Martin Honnen wrote:
Rick wrote:
Could we disable the DOM construction in IE?


If you disable scripting in IE then it does not build a DOM.

--

Martin Honnen
http://JavaScript.FAQTs.com/


Jul 23 '05 #3
Martin Honnen wrote:
If you disable scripting in IE then it does not build a DOM.
I find this statement interesting. Is it documented?

If I disable scripting (set Security Level high under Tools/Internet
Options/Security/Local Computer - this is with IE 6 under Win XP Pro,
SP 2) for the local computer and open the following c:\tmp\delme.ht m
file then the second text shows black, consistent with your claim:

<html><head><ti tle>DOM test</title></head>
<body>
<div style="color:bl ue" id="mydiv">Hi mom</div>
<div id="div2"
style="color:ex pression(docume nt.getElementBy Id('mydiv').sty le.color)"Hi dad</div>

</body>
</html>

However, if I introduce delme.vbs as below, then the second text will
be colored blue, too. This doesn't necessarily contradict your claim
because it may be VBScript that is building the DOM, but I am mighty
suspicious because it is IE that is doing the rendering. How say you,
Martin?

set ie=createobject ("InternetExplo rer.application ")
ie.visible = true
ie.navigate2 "c:\tmp\delme.h tm"
while ie.readystate<> 4: wscript.sleep 10: wend
set div2 = ie.document.get ElementById("di v2")
div2.style.colo r = "blue"

Csaba Gabor from Vienna

Jul 23 '05 #4
VK


Rick wrote:
Hi,

We need to generate a huge HTML page (only TABLE/TR/TD structure), for
a size of 5 Mo. The problem is when IE receive this html source, it
try to build a DOM with it. As result, it could be very long to
display the HTML page to the client.

Could we disable the DOM construction in IE?

Thanks!


Specially for such cases (more precisely - for their databound tables)
Microsoft has table-layout style attrubute.

So if you set table style:
table { table-layout: fixed}

IE will display new row as soon as it has data for it. By my
observation (not microtimed though) in this case the display speed is
proportional to the data stream speed.

Jul 23 '05 #5


Csaba Gabor wrote:
Martin Honnen wrote:
If you disable scripting in IE then it does not build a DOM.

I find this statement interesting. Is it documented?


No, I was guessing and should have said so.
And your thinking that while scripting inside the page can be disabled
nevertheless someone might automate IE with script from the outside is
correct and therefore you are right, the DOM is build nevertheless as it
looks.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #6
Martin Honnen wrote:
Csaba Gabor wrote:
Martin Honnen wrote:
If you disable scripting in IE then it does not build a DOM.


I find this statement interesting. Is it documented?


No, I was guessing and should have said so.
And your thinking that while scripting inside the page can be
disabled nevertheless someone might automate IE with script
from the outside is correct and therefore you are right, the
DOM is build nevertheless as it looks.


In principle a web browser must have an internal (software)
representation of the HTML just in order to display/present its
contents. Given modern software design the odds have go to be good that
that representation is a collection of co-operating objects (probably
C++ objects) that represent an object model themselves. The question
would then be the extent to which the object model that interacts with
scripts was something separate from (or parallel to) the object model
that the browser employed itself, or whether scripting just exposed an
interface to that object model. In the latter case the scriptable object
model would always be there regardless of whether it was scripted and in
the former case its creation may not be necessary whenever it could not
be scripted (but there would be no way of knowing/testing).

Given a sufficiently large page, and particularly a sufficiently large
table, I would not expect much improvement in load/display time to be
apparent either way. Working out just the layout for a table is a long
way form being trivial (worse if the browser is attempting progressive
rendering), and there must be some representation of the table in order
to do so.

Richard.
Jul 23 '05 #7
Thanks guys,

But we have already save the HTML page as a HTML file on disk (to
remove streaming delay) and when we re-open it, it take a long time too
(at least 30 secs for 5megs). We have try with a file of 2 and 5 megs
and it's very long even if it take time to display, I'm sure the major
part still the DOM construction. I will try your fixed table as css,
to look if it reduce time to display...

Thx

Jul 26 '05 #8
VK
Rick wrote:
Thanks guys,

But we have already save the HTML page as a HTML file on disk (to
remove streaming delay) and when we re-open it, it take a long time too
(at least 30 secs for 5megs). We have try with a file of 2 and 5 megs
and it's very long even if it take time to display, I'm sure the major
part still the DOM construction. I will try your fixed table as css,
to look if it reduce time to display...

Thx


Thinking over, nothing you can do while working with it as with one
file. I had to work with C# libraries text dumps (over 18,000 entries)
in both IE and Word and it was damn slow on 2Gh/512Mb.

It's just as it is: a 5-10 Mb doc cannot be displayed *immediately*,
unless you get on hold of Cray. Bu it will be problematic to supply a
Cray station to each of your customers ;-)

If we accept the point that no one needs the entire >5Mb *at once* then
there are some variants. Did you hear about tabular data binding? It's
still all on the client side, no server involved.

Jul 27 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1560
by: Anthony | last post by:
Hi, Can anyone help me out here, I'm looking for a design (pattern?) for a-synchronic construction of a class. I need this design in a framework which will run in a multithreaded system. I want a class (client) in threadA to a-synchronously construct a class (server) in threadB. Both threads will probably need a kind of construction manager object. For passing the request I will probably need to use a parameterised class.
2
1696
by: Steve | last post by:
Hi Folks, Sorry for this stupid question, but how do you handle errors during class construction. In other words, if I have a class that loads a file, and during loading, an error occurs, how do you deal with this in respect of releasing the resources that would have been allocated if the load was successful? What I am trying to achieve is, if I call my class with new, how do I return NULL if the construction fails (so I can check for...
14
1992
by: trying_to_learn | last post by:
i am on the chapter on copy construction in C++ in the code (see below), the author says if u pass the object by value as in HowMany h2 = f(h); ....then a bitwise object is created w/o calling the constructor of the class. However he says when we leave scope of function HowMany f(HowMany x) then the destructor is called. why this inconsistency?. Accdng to me even the destructor should *not* be called. i can understand that bit wise copy...
6
2194
by: Siv | last post by:
Hi, I have a form with a TabControl on it, I have 6 tabs across the top of the page. What I'd like to do is have all but the first and second tab visible when the app starts and then as the user completes the data on the first tab and clicks to the second tab, the third tab appears. What I am trying to avoid is the user not jumping to the next but one tab as each tab determines the contents of the one that follows it. In the...
4
1656
by: ChairShot | last post by:
I want to disable intellisense. I'm using vb.net 2003 with visual studio. I am a college stundent and it is slowing me down so I can't finish my work. dos-man
9
10291
by: surf_doggie | last post by:
Im not sure if this is the group to post in, if anyone knows a more appropriate one please let me know. Please consider the following example of a feature most all browsers have that I would like to either disable or find a work around for. Background: I have a form that has 3 input type="text" fields. The fields are Quantity, Amount and total. OnKeyUp is used when you enter something in Quantity or Amount to trigger a javaScript...
7
3413
by: BeautifulMind | last post by:
In case of inheritence the order of execution of constructors is in the order of derivation and order of destructor execution is in reverse order of derivation. Is this case also true in case class is derived as virtual? How does the order of construction/destruction is impacted if the base class is derived as virtual or non virtual? just see the example below.
15
2413
by: Victor Bazarov | last post by:
Hello, Take a look at this program: ----------------------------------- class B { B(const B&); B& operator=(const B&); public: B(int);
2
3212
by: Agnes | last post by:
My datagrid will let the user input the data row by row. However, there is one row which is read only (it may appear in 2nd row or 4th row.. whatever) How can I do that ?? Thanks in advance .
0
9703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10548
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9125
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6842
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4275
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2970
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.