Hi Jakub,
If the main problem is the initial loading of the screen, one way to imrpve performance is to use a single process that creates the whole hierarhcy (initilizing the element properties of all HTML tags). This would replace the init actions of inidividual elements. If this process runs a long time in the browser, it can help to put it in a service as server-side perormance is generally better.
(But if it runs fast enough on the client, which may be the case, it's better to leave it on the client in order to minimize server load)
Doing it this way will result in the whole HTML being created at once (using innerHTML) as ooposed to many DOM manipluations which are generally slower.
I expext that using class names will be faster than using Set Style Attribute. For style propertis that do not naturally fit in a CSS class (mostly attributes that change cynamically), you can also add the properties to the HTML Tag Elements (e.g. you can add a <border> or <border-left> data elements and these should directly map to the relevant style properties.
Regards,
Youval
To use the full functionality of this web site, JavaScript needs to be turned on.
For best results, use the Firefox browser..
Copyright © 2003-2017 - Tersus Software Ltd., All rights reserved. Terms of Use License Graphic design by EmaraDesign