Bugzilla – Bug 9245
Improve web UI load time
Last modified: 2009-07-31 10:27:55 UTC
Created attachment 3854 [details] reduce the number of included .js files from >4 to 1 - combine .js files in fewer .js files - dito for .css - clean up css: * remove definitions we're no longer using * remove unnecessary bg images (eg. filesystemBrowseBtn?) - verify caching: * is being cached what needs to be cached? * increase expiry times where possible
Created attachment 3855 [details] increase expiry on static content (js/css)
We could probably even pre-process (combin & compress à la jsbuilder) the .js files in the builds. Instead of having SC wrap them in one large js.html, create that file at build time. Lower load on the server, smaller file size.
Move init code doing visual changes to the page at the top. Eg. Settings: Index: D:/eclipse/Boom/server/HTML/Default/html/Settings.js =================================================================== --- D:/eclipse/Boom/server/HTML/Default/html/Settings.js (revision 22914) +++ D:/eclipse/Boom/server/HTML/Default/html/Settings.js (working copy) @@ -232,10 +232,14 @@ return { init : function(){ + this.initSliders(); this.initDescPopup(); + SqueezeJS.UI.FilesystemBrowser.init(); SqueezeJS.UI.ScrollPanel.init(); + this.showWarning(); + var items = Ext.query('input'); for(var i = 0; i < items.length; i++) { var inputEl; @@ -260,10 +264,6 @@ Ext.select('input, textarea, select').on('change', function(ev){ modified = true; }); - - this.initSliders(); - - this.showWarning(); }, initDescPopup : function(){
change 22897 - wrap all .js files up into one larger file - one file loads faster than four smaller files - create optimized ext-browse.js with the minimum needed in browse pages - loads approx. 25% faster on an eeePC class client (using FF)
change 22919 - change JS call order according to comment #3
This bug has been fixed in the 7.3.0 release version of SqueezeCenter! Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already. If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Reduce number of active targets for SC