Shouldn't your browser do this for you?

Anyway, be sure to add correct content expirations headers for you webserver, this will make sites/app making use of js libraries fly, as the browser will only download
the js files once, and won't try again for a period of time you tell it.

Example for Apache (with mod_expires/mod_headers loaded):

ExpiresActive On
ExpiresByType text/javascript "access plus 1 month"

mod_gzip is another beautiful thing to look into.

-Thomas

Am 01.04.2006 um 10:41 schrieb Tench:

Along the same lines, I wonder what would be the best way to have a progress indicator when loading JavaScript files. Prototype + Scriptaculous can get quite heavy. Is there a way to load the minimum required JS then display a progress wheel or something while the rest of the JS files are being loaded? Has anybody implmented somehting along these lines?

Tench


On 01. April 2006., at 10:37, Daniel Elmore wrote:

From my understanding, it isn’t too hard to create your own progress reader. When a file is submitted a HTTP Header “Content- Length” is sent, which tells the size of the file in bytes. Then you can repeatedly check the upload status by getting the file size from the OS temp directory. All you need is the total file size and the current file size to create a little percentage bar.


This has been done in ColdFusion very easily. Don’t know if .NET is going to be painless.


-Daniel



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:rails- [EMAIL PROTECTED] On Behalf Of Jim Geurts
Sent: Saturday, April 01, 2006 2:28 AM
To: rails-spinoffs@lists.rubyonrails.org
Subject: Re: [Rails-spinoffs] File upload progress bar


And of course it appears that MS and asp.net just blows for that kind of stuff. Thanks for the info anyway.



On 3/31/06, louis d walch <[EMAIL PROTECTED]> wrote:

Here are some links I have that are applicable:


http://tomas.epineer.se/archives/3

http://www.devpro.it/upload_progress/

http://bluga.net/projects/uploadProgressMeter/

http://www.raditha.com/php/progress.php




From: [EMAIL PROTECTED] [mailto:rails- [EMAIL PROTECTED] On Behalf Of Jim Geurts
Sent: Friday, March 31, 2006 6:38 PM
To: rails-spinoffs@lists.rubyonrails.org
Subject: [Rails-spinoffs] File upload progress bar


I've seen a few demos online, for php, but I'm looking for a file upload progress bar implementation with Prototype. Can anyone point me in a good direction for one?

I'm not using Rails, so I can't use the upload_progress addon, unfortunately.

Thanks for any info

Jim


_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs



_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to