[Laszlo-dev] For Review: Change 20061129-maxcarlson-k Summary: Optimize performance by using CSS instead of javascript where possibble

Max Carlson max at openlaszlo.org
Wed Nov 29 15:32:44 PST 2006


Change 20061129-maxcarlson-k by maxcarlson at max-carlsons- 
computer.local on 2006-11-29 15:22:39 PST
     in /Users/maxcarlson/openlaszlo/legals

Summary: Optimize performance by using CSS instead of javascript  
where possibble

New Features:

Bugs Fixed:

Technical Reviewer: promanik
QA Reviewer: ptw
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details: Added perf tests that show ~30% speed dimprovement for text,  
LzSprite, LzInputTextSprite and LzTextSprite use CSS where possible,  
clean out old comments from LaszloView, fire sprite.init(true) in  
canvas to show canvas, add style-dhtml.css with default styles,  
updated html-response.xslt to include css and not add redundant  
embednew.js.  Canvas and canvas click mask are now hidded during  
startup, reducing repaints.


Tests: All apps look the same as before in Safari, Firefox 2 mac and  
win, and IE 6.  Startup time is noticably better!

Files:
M      test/lfc/perf/sprite.lzx
A      test/lfc/perf/text.lzx
M      WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
M      WEB-INF/lps/lfc/kernel/dhtml/LzInputTextSprite.js
M      WEB-INF/lps/lfc/kernel/dhtml/LzTextSprite.js
M      WEB-INF/lps/lfc/views/LaszloView.lzs
M      WEB-INF/lps/lfc/views/LaszloCanvas.lzs
M      WEB-INF/lps/templates/html-response.xslt
A      lps/includes/style-dhtml.css

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20061129- 
maxcarlson-k.tar


More information about the Laszlo-dev mailing list