Re: [xwiki-users] Using jsfx plugin
2011/9/7 Grüner Heinrich <[email protected]>:
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/xwik... ). Take a look at how the Gallery macro is using it: https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwik... . 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 <[email protected]> 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<[email protected]>:
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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (1)
-
Marius Dumitru Florea