2011/9/7 Grüner Heinrich <gruener.heinr...@googlemail.com>: > Thanks, > and how is this parameter set in a java-written component?
If you're writing a component then I advise you to use the SkinExtension component ( see https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-skin/xwiki-platform-skin-api/src/main/java/org/xwiki/skinx/SkinExtension.java ). Take a look at how the Gallery macro is using it: https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-macros/xwiki-platform-rendering-macro-gallery/src/main/java/org/xwiki/rendering/internal/macro/gallery/DefaultGalleryMacro.java . Use the method that takes a map of parameters if you want to specify the defer parameter. Hope this helps, Marius > > Am 07.09.2011 10:40, schrieb Marius Dumitru Florea: >> >> On Wed, Sep 7, 2011 at 10:26 AM, Stefan Bernsdorf >> <gruener.heinr...@googlemail.com> wrote: >>> >>> Hi Marius, >>> it would be sufficient for me, to turn off this flag when calling >>> plugin.use('blah.js',context); >> >> Then, in Velocity, you simply need to write: >> >> $xwiki.jsfx.use("path/to/your.js", {'defer': false}) >> >> Hope this helps, >> Marius >> >>> Thanks, >>> Stefan. >>> >>> Am 07.09.2011 09:00, schrieb Marius Dumitru Florea: >>>> >>>> Yes, see http://jira.xwiki.org/browse/XSKINX-49 . >>>> >>>> Hope this helps, >>>> Marius >>>> >>>> 2011/9/7 Grüner Heinrich<gruener.heinr...@googlemail.com>: >>>>> >>>>> Hi, >>>>> when I use the jsfx-plugin all script-tags will be rendered with the >>>>> defer flag. >>>>> Can I turn off this flag? >>>>> >>>>> Thanks, Stefan. >>>>> _______________________________________________ >>>>> users mailing list >>>>> users@xwiki.org >>>>> http://lists.xwiki.org/mailman/listinfo/users >>>>> >>> > > _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users