Re: Javascript: Time Traveller From the Year 1962!

[prev] [thread] [next] [lurker] [Date index for 2005/04/10]

From: Michael G Schwern
Subject: Re: Javascript: Time Traveller From the Year 1962!
Date: 01:54 on 10 Apr 2005
On Sun, Apr 10, 2005 at 01:47:16AM +0100, Geoff Richards wrote:
> > This is Bad.  This discourages modular programming.  This leaves everyone
> > to reimplement basic functionality over and over again.  That's the hate
> > I'm talking about.  Anything that involves putting the include functionality
> > into the web page, be it <script> or SSI or whatever, has that hate.
> 
> I was actually suggesting putting the SSI in the JavaScript source
> files.  Then it would be just like having a real JS 'include' directive,
> except with a rather odd syntax.  

Clever.  I might make use of that for myself, thanks.

But still non-standard and thus unshippable. :(


> The only problem I can see is you'd
> have to update the modification time on the 'main' JS file whenver one
> of the included ones was modified, to get cached versions updated.

Shouldn't SSI trigger a cache flush based on the mod time of the files being 
included rather than just the file doing the including?

Generated at 12:00 on 12 Apr 2005 by mariachi 0.52