[Javascript] external scripts
Laurent Muchacho
LaurentM at london.virgin.net
Mon Jun 21 09:14:16 CDT 2004
Hi Mike,
I found this a while ago http://www.brainjar.com/js/crunch/demo.html I'm
sure it will work perfectly for what you want to do. In the sources code you
will find all the regexp to do what you want.
Laurent
-----Original Message-----
From: Mike Dougherty [mailto:mdougherty at pbp.com]
Sent: 21 June 2004 15:10
To: [JavaScript List]
Subject: [Javascript] external scripts
I have a client-side browser app composed of about 20 external scripts
totalling about 90k
I viewed this site over dial-up and realized there has to be some
optimization to make the site
more palatable for dial-up (and consequently improve performance on
broadband too)
I'm guessing a single monolithic script file would be retrieved and cached
by the browser more
efficiently than 20 separate files - is this a correct assumption?
I also have inline comments in the script- these are useful for whatever
developer go back to the
source for upgrades, but serve only to bulk up the download for the
customer.
Since I'm going to collect these 20+ separate scripts into a single download
anyway, I plan to
remove the comments too. Can someone provide me with the regexp to remove
everything between /*
and */? (the / needs to be escaped, and isn't the * a wildcard? i really
don't "get" regexp like
i want to)
What is the 'best practice' for maintaining readible source code for
developer use and
pseudo-compiled script for browser consumption?
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
This E-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this E-mail in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this E-mail.
More information about the Javascript
mailing list