Is it in the works to make the required JS files for an app somewhat (more) dynamic than what is offered with the current nightly build? Here's a list of JS files included by my Xforms powered form.
/config/theme/jscalendar/calendar.js (49)
/config/theme/jscalendar/lang/calendar-en.js (4) /config/theme/jscalendar/calendar-setup.js (9) /ops/javascript/yahoo.js (3) /ops/javascript/event.js (37) /ops/javascript/dom.js (31) /ops/javascript/connection.js (15) /ops/javascript/animation.js (32) /ops/javascript/dragdrop.js (77) /ops/javascript/slider.js (24) /ops/javascript/treeview.js (48) /ops/javascript/treeview-tasknode.js (7) /ops/javascript/treeview-checkonclicknode.js (1) /ops/javascript/container_core.js (61) /ops/javascript/menu.js (127) /ops/fckeditor/fckeditor.js (6) /config/theme/javascript/xforms-style.js (16) /ops/javascript/wz_tooltip.js (17) /ops/javascript/overlib_mini.js (24) /ops/javascript/time-utils.js (6) /ops/javascript/xforms.js (119) /ops/javascript/suggest-common.js (4) /ops/javascript/suggest-actb.js (18) Uncompressed that's 735 kb of Javascript files downloaded. My particular app doesn't make use of much of what the Yahoo library provides, the fckeditor, or the JS Calendar, reducing the possible JS size to about 329 kb (uncompressed).
I assume all the Yahoo library was added for you guys to test with in the new version, and will hopefully be optimized before final release. However, is there a way for me to control which files are loaded and which are not (short of deleting them from the javascript folder :) ) without modifying the XHTMLHeadHandler class?
This particular app will most likely see a lot of visitors (and the form is essentially just one page) so serving up 735 kb of JS where browser caching doesn't matter is really slowing down the page's load time.
Any help is appreciated.
Jay -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Jay,
You are absolutely right! We do plan to fix this in two ways for the 3.1 release: 1. Only include the JavaScript files required based on the controls and appearances you actually use. http://forge.objectweb.org/tracker/index.php?func=detail&aid=305705&group_id=168&atid=350207 2. Have an option to use the compressed / optimized versions of files whenever available. http://forge.objectweb.org/tracker/index.php?func=detail&aid=305707&group_id=168&atid=350207 Note that in addition to the above, you should try to enable gzip compressions on your web server. This can make the size of transfered data 10 times smaller. -Erik Jay Klehr wrote: > Is it in the works to make the required JS files for an app somewhat > (more) dynamic than what is offered with the current nightly build? > Here's a list of JS files included by my Xforms powered form. > > /config/theme/jscalendar/calendar.js (49) > /config/theme/jscalendar/lang/calendar-en.js (4) > /config/theme/jscalendar/calendar-setup.js (9) > /ops/javascript/yahoo.js (3) > /ops/javascript/event.js (37) > /ops/javascript/dom.js (31) > /ops/javascript/connection.js (15) > /ops/javascript/animation.js (32) > /ops/javascript/dragdrop.js (77) > /ops/javascript/slider.js (24) > /ops/javascript/treeview.js (48) > /ops/javascript/treeview-tasknode.js (7) > /ops/javascript/treeview-checkonclicknode.js (1) > /ops/javascript/container_core.js (61) > /ops/javascript/menu.js (127) > /ops/fckeditor/fckeditor.js (6) > /config/theme/javascript/xforms-style.js (16) > /ops/javascript/wz_tooltip.js (17) > /ops/javascript/overlib_mini.js (24) > /ops/javascript/time-utils.js (6) > /ops/javascript/xforms.js (119) > /ops/javascript/suggest-common.js (4) > /ops/javascript/suggest-actb.js (18) > > Uncompressed that's 735 kb of Javascript files downloaded. My > particular app doesn't make use of much of what the Yahoo library > provides, the fckeditor, or the JS Calendar, reducing the possible JS > size to about 329 kb (uncompressed). > > I assume all the Yahoo library was added for you guys to test with in > the new version, and will hopefully be optimized before final release. > However, is there a way for me to control which files are loaded and > which are not (short of deleting them from the javascript folder :) ) > without modifying the XHTMLHeadHandler class? > > This particular app will most likely see a lot of visitors (and the form > is essentially just one page) so serving up 735 kb of JS where browser > caching doesn't matter is really slowing down the page's load time. > > Any help is appreciated. > > Jay > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |