[thelist] ASP to populate .js file?

Ken Schaefer ken at adOpenStatic.com
Wed Apr 7 13:38:48 CDT 2004

From: "Stephen Caudill" <SCaudill at municode.com>
Subject: RE: [thelist] ASP to populate .js file?

--------------- Ken Schaefer wrote: --------------- 
: I disagree. Unless you get some kind of performance benefit from
: being able to cache a static version of the .js file (by
: persisting it to disk), the method suggested (creating .js files
: physically) will be slower than building the .js on the fly.
: On the other hand, if you have a lot of requests for single
: versions of the .js file, then the performance benefits of
: persisting the content to a static .js file would make this
: method a no brainer.
: Cheers
: Ken

: Right.  I agree with you Ken, it will be quicker to generate the
: JS dynamically inside and ASP page (see my second post in this
: thread.  However.......

No, that is not what I'm saying.

I am saying that using the File System Object to read in static files -or-
create static files, is slow. So, unless you are getting some kind of
caching benefit (i.e. a user will reuse this static file a large number of
times), then this method should be avoided.

: The original post asked for a way to have ASP in a .js file
: which insinuates that a separate (JS) file is a necessity.  IMO,
: this is bad from the get go in every scenario I can envision.



More information about the thelist mailing list