Jean-Marc Orliaguet a écrit : > > Hi, that's what scriptaculous.js does: > > it makes sure that prototype.js >= 1.5.0 is present then loads > builder.js, effects.js, dragdrop.js, controls.js, and slider.js (a total > of probably 150Kb of uncompressed javascript code) > > what I propose instead is to load only what's needed by a given widget > and remove the scriptaculous.js script alltogether, since the > functionality of loading resources is implemented in NXThemesJsf > already, with the possibility to load all scripts at once (merged in one > single file) and in a gzip-compressed format when supported by the client. > > so if you need drag-and-drop, simply require dragdrop.js in the widget > definition (interdependencies between the modules can be declared too to > simplify registrations) if you need effects.js require effects.js, etc.. > > any comment on this?
+1 -- Olivier _______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm
