Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > loading multiple JS files in one request

Reply
Thread Tools

loading multiple JS files in one request

 
 
d d
Guest
Posts: n/a
 
      07-09-2007
I saw a weird thing the other day. A script tag that had multiple JS
files being loaded at the same time, from the one tag. It was basically
like this:

<script src="file1.js,file2.js,somefolder/file3.js,file4.js">

All files came back as one concatenated big file.

I asked our MIS server dude if we could do this with Apache servers. I
thought that maybe there was some kind of server plugin that parsed the
request looking for commas, got all the files and returned them as if
they were one file. He'd never heard of such a thing.

Has anyone here heard of anything like this without using an active
server page?

The site I saw this at was www.livejournal.com. You can see the request
in Fiddler or Charles as the first thing the html page requests. In the
response you can clearly see where the different files are starting and
finishing just from the header style of the comments and the filenames
in the comment blocks.

~dd
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Request duplication / multiple results per request -- ever seen? parsifal ASP .Net 0 06-15-2007 01:43 PM
request help with strategy for loading multiple drop down lists Chris ASP .Net Web Controls 1 09-24-2005 03:11 PM
Text files read multiple files into single file, and then recreate the multiple files googlinggoogler@hotmail.com Python 4 02-13-2005 05:44 PM
Using One XSLT and multiple XML Problem (One is XML and another one is XBRL) loveNUNO XML 2 11-20-2003 06:47 AM
Re: Accessing Request.InputStream / Request.BinaryRead *as the request is occuring*: How??? Brian Birtle ASP .Net 2 10-16-2003 02:11 PM



Advertisments