[dokuwiki] Re: how to add dynamic css from a plugin ?
- From: "Stéphane Gully" <stephane.gully@xxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Wed, 26 Mar 2008 18:59:37 +0100
On Thu, Mar 20, 2008 at 6:47 PM, Christopher Smith <chris@xxxxxxxxxxxxx> wrote:
> http://wiki.splitbrain.org/wiki:metadata#functions_to_get_and_set_metadata
> http://wiki.splitbrain.org/wiki:metadata#metadata_and_plugins
> http://wiki.splitbrain.org/wiki:caching#two-stage-caching
>
> The renderer is only about when rendering happens. As far as your
> action plugin is concerned that could have been last week - it must
> use p_get_metadata(). Its described in the first link above, also
> check out the API docs,
> http://dev.splitbrain.org/reference/dokuwiki/nav.html?index.html
> (look for inc/parserutils, I'd paste a link but it redirects to a
> 403 error). You'll probably need to call it with the third parameter,
> render, set to true (that forces the metadata to be rendered if it
> doesn't exist).
Thank you Christopher, your links were useful.
Now my first dw plugin is ready and I released a first version here:
http://wiki.splitbrain.org/plugin:pxxo
I know it will be almost unusable for all non-french users, however I
wanted to share it to the community.
Of course, as it's my first plugin, don't hesitate to comment my code,
it the code can be cleaner, I will be happy :-)
On Wed, Mar 26, 2008 at 3:35 AM, Martin Tschofen
<martin.tschofen@xxxxxxxxx> wrote:
> I'm not sure if this will fit with your issue, however, have you considered
> to inline the javascript instead of adding it to the head?
> According Yahoo's performance testing, it's better to output javascript at
> the bottom of a page rather than in the header as it stops rendering until
> the javascript has been parsed.
Thank you for your suggestion bug as I'm dependent on how pxxo handle
the JS/CSS, I cannot force JS includes at the bottom of the page.
Moreover, JS including order is very important and if I include it at
the bottom of the page, I'm sure some widgets will not work anymore.
In fact, each widget's developers will choose where is the most
judicious place to put the JS (inline, or in the html head). This
choice is very dependent on the widget nature and how it is
implemented.
regards,
--
Stéphane GULLY
http://www.zeitoun.net
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- Follow-Ups:
- [dokuwiki] Re: how to add dynamic css from a plugin ?
- From: Stéphane Gully
- References:
- [dokuwiki] how to add dynamic css from a plugin ?
- From: Stéphane Gully
- [dokuwiki] Re: how to add dynamic css from a plugin ?
- From: Michael Klier
- [dokuwiki] Re: how to add dynamic css from a plugin ?
- From: Stéphane Gully
- [dokuwiki] Re: how to add dynamic css from a plugin ?
- From: Christopher Smith
- [dokuwiki] Re: how to add dynamic css from a plugin ?
- From: Stéphane Gully
- [dokuwiki] Re: how to add dynamic css from a plugin ?
- From: Christopher Smith
Other related posts:
- » [dokuwiki] how to add dynamic css from a plugin ?
- » [dokuwiki] Re: how to add dynamic css from a plugin ?
- » [dokuwiki] Re: how to add dynamic css from a plugin ?
- » [dokuwiki] Re: how to add dynamic css from a plugin ?
- » [dokuwiki] Re: how to add dynamic css from a plugin ?
- » [dokuwiki] Re: how to add dynamic css from a plugin ?
- » [dokuwiki] Re: how to add dynamic css from a plugin ?
- » [dokuwiki] Re: how to add dynamic css from a plugin ?
- » [dokuwiki] Re: how to add dynamic css from a plugin ?
- » [dokuwiki] Re: how to add dynamic css from a plugin ?
- » [dokuwiki] Re: how to add dynamic css from a plugin ?
- » [dokuwiki] Re: how to add dynamic css from a plugin ?
- [dokuwiki] Re: how to add dynamic css from a plugin ?
- From: Stéphane Gully
- [dokuwiki] how to add dynamic css from a plugin ?
- From: Stéphane Gully
- [dokuwiki] Re: how to add dynamic css from a plugin ?
- From: Michael Klier
- [dokuwiki] Re: how to add dynamic css from a plugin ?
- From: Stéphane Gully
- [dokuwiki] Re: how to add dynamic css from a plugin ?
- From: Christopher Smith
- [dokuwiki] Re: how to add dynamic css from a plugin ?
- From: Stéphane Gully
- [dokuwiki] Re: how to add dynamic css from a plugin ?
- From: Christopher Smith