Re: skinning method decision

From: Date: Sat, 02 Mar 2002 12:20:53 +0000
Subject: Re: skinning method decision
References: 1  Groups: php.doc.chm 
Request: Send a blank email to php-doc-chm+get-58@lists.php.net to get a copy of this message
Hello Gabor, Tuesday, February 26, 2002, 11:49:40 PM, you wrote: GH> Hi! GH> So it would be nice to come to a decision about the GH> skinning method. We have two suggestions: GH> a) Use id="" parameteres in all HTML parts we would GH> like to support to be skined, and define one GH> function called using the page unload event to GH> form the new look of tha page according to the GH> used skin. Hide the page until the designed page GH> is built up. GH> b) Define separate functions for parts we would like GH> to support to be skined, and put in calls to the GH> functions inside the HTML code of every page. Form GH> the page while it displays itself. GH> Advantages: GH> a) Smaller HTML files, GH> Very small and simple skin code for inline skins, GH> Better speed (accoring to my tests) for inline skins GH> b) More traditional way of coding GH> Slightly better speed for external skins GH> Formatting, while page is displayed GH> Disadvantages: GH> a) The built in HTML codes, like » for the outside links GH> are not that easy to work around in an external skin GH> Formatting before page displayed (some more delay for external skins) GH> b) Slower for internal skins, GH> Bigger HTML files GH> Handling of encapsulated elements (eg. notes inside examples) GH> makes function definitions complex GH> As we stated before, we prefer to have smaller HTML files, GH> and let the inline skins be as fast as possible (ideally as GH> fast, as they was before the skin feature introduced). We GH> can achive these with the a) method, as my speed and size GH> tests showed. GH> So I would like to give my vote for the innerHTML method. GH> What do other think about this? GH> Note: the speed test suite is still available from GH> http://weblabor.hu/php-doc-chm/speed.zip GH> Goba I vote for method a)! :) The most important is inner skin -- Best regards, Olexandr mailto:supaboy@i.com.ua

« previous php.doc.chm (#58) next »