Re: Xaraya_Classic theme menu blocks logic
Fournier Daniel <[email protected]> Tue, 04 May 2004 11:03:33 +0200
| Newsgroups | gmane.comp.cms.xaraya.ui |
|---|---|
| Organization | Xaraya News Server |
| Message-ID | <[email protected]> |
Andy Varganov wrote:
> Fournier Daniel wrote:
>
>> Surely, but the actual Xaraya_Classic theme undergoes an heavier
>> markup overhead, that's what I wanted to point out.
>
>
> and here you're not correct - see, the weight of markup in the template
> is not necessarily 'propagated' to the weight of its output (webpage
> markup).. In fact your version will result in 'heavier' webpage than the
> original, because you leave the unneeded tags on the page, while
> 'hiding' them with css - just look at what your template outputs.. and
> the css itself in the head also adds markup to EVERY page. So if you
> were suggesting to change the original theme with your version, I failed
> to see any advantages of it.
That's a good explanation.
However, I don't think this extra markup will make a noticeable latency
on the client side.
For instance, if I have no left menu, I get this line (<head/> child):
<style>td#leftmenus { display:none; }</style>
and (<td id="leftmenus"/> child):
<div id="leftmenuswrapper">
<div class="iewintablefixer"></div>
</div>
These 3 uneeded elements to parse on client side are nothing compared to
the tens of elements to be parsed on server side to decide what is the
exact output.
But the main benefice is clearly in the template readability: no
duplication of code, which is always error prone when you want to modify
something.
Daniel