Hiya, I have the following in a component:
void setupRender() { jsSupport.require("af/highcharts/theme/darkGreen").priority(InitializationPriority.EARLY); jsSupport.require("af/highcharts/lineChart").with(params); } and yet the theme module is still called *after* the lineChart. From Firefox console: Invoking af/highcharts/lineChart({ ... }) Invoking af/highcharts/theme/darkGreen() Is this because one module is invoked with params and the other without? The component is used several times on the same page, resulting in many calls to "require" the same modules. Steve. P.S. So far I'm liking the use of RequireJS - I get a cosy feeling from having my dependencies injected into my JS modules, it's like an IoC for JS! -- Steve Eynon ------------------------------- "If at first you don't succeed, so much for skydiving!" --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org