
|
[dokuwiki]
||
[Date Prev]
[05-2006 Date Index]
[Date Next]
||
[Thread Prev]
[05-2006 Thread Index]
[Thread Next]
[dokuwiki] Re: multiple javascript files
- From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Sat, 6 May 2006 22:51:31 +0200
On Tue, 02 May 2006 09:44:10 +0100
Chris Smith <chris@xxxxxxxxxxxxx> wrote:
> Martin Tschofen wrote:
> > I know I can just put a script.js file inside the plugin folder, but
> > I don't want to combine all the files in that file so I can more
> > easily update them later.
> >
> Maybe, we should give plugins the possibility of using a style and/or
> script folder to store multiple css or js files, much like we do with
> the plugin script or a folder of the same name.
>
> Anyone else have thoughts on this?
I thought about that, too. We know that the file exists checks are cheep
but the needed directory lookups to find the files could be somewhat
more expensive. We would need some way to determine the needed loading
order (probably doing a sort on the filename) which would add another
few cycles. I don't know if it is really needed.
A plugin developer could simply create multiple .js files and when he's
ready concatenate them into a single script.js file.
Andi
|

|