Re: [jQuery] Handling you javascript files

2007-02-14 Thread Kristinn Sigmundsson
Wow how could I miss that?! Thanks alot for enlightening me Aaron. So I think that just about solves my problem. Combining [1] and [2], I'll be able to have my javascript in seperate files for development reasons and still be able to feed users a packed, compressed single file that updates everyti

Re: [jQuery] Handling you javascript files

2007-02-14 Thread Aaron Heimlich
On 2/14/07, Kristinn Sigmundsson <[EMAIL PROTECTED]> wrote: On a side note, http://www.ejeliot.com/blog/73 uses JSMin to compress the files, I've used dean edwards online packer [1] before, and really like the results it gives me (havn't tried it yet with JQuery). Does anyone know of a PHP pack

Re: [jQuery] Handling you javascript files

2007-02-14 Thread Kristinn Sigmundsson
Klaus, yeah I was afraid of that. So calling lots of 1-5kb js files is a big no-no. Kenneth, thx alot for that, that solution lets me have my development files and easily compress them to one cached js file whenever a file changes. Excelent! On a side note, http://www.ejeliot.com/blog/73 uses JS

Re: [jQuery] Handling you javascript files

2007-02-14 Thread Chris Domigan
Here's what I do to easily bulk load all my scripts whilst still keeping everything in separate files: And in scripts.php - Then I can easily add/remove scripts in the php file and as far as the browser sees, it downloads them all as one file! Also unlike other server-side solutions to this

Re: [jQuery] Handling you javascript files

2007-02-14 Thread Kenneth
p.s. I forgot this article, which could be combined with the technique listed in my previous response: http://www.ejeliot.com/blog/73 and the previous, related article: http://www.ejeliot.com/blog/72 It is a similar technique, yet it also utilizes Douglas Crawford's JSMin to compress the JS, a

Re: [jQuery] Handling you javascript files

2007-02-14 Thread Kenneth
Here's an article that I've been meaning to post to the list anyways, but I guess this is a great opportunity to do so. http://www.hunlock.com/blogs/Supercharged_Javascript It is a somewhat advanced article, and the example uses htaccess+PHP, but you could use pretty much any server language. It

Re: [jQuery] Handling you javascript files

2007-02-14 Thread Klaus Hartl
Brandon Aaron schrieb: > I would highly recommend merging as much as you can into one file. > Each additional request could tack on a couple 100 milliseconds. The > best thing you can do though is to get the latest firebug console > (www.getfirebug.com) and use the 'Net' tab to compare both methods

Re: [jQuery] Handling you javascript files

2007-02-14 Thread Brandon Aaron
I would highly recommend merging as much as you can into one file. Each additional request could tack on a couple 100 milliseconds. The best thing you can do though is to get the latest firebug console (www.getfirebug.com) and use the 'Net' tab to compare both methods and see which is better for yo

[jQuery] Handling you javascript files

2007-02-14 Thread Kristinn Sigmundsson
Hi there. I'm working on a site that will be using alot of ajax for edit-in-place, aswell as alot of other javascript. The thing is that there is practicly no javascript for regular users, compared to administrators. So I figured that in the top of my indexfile where all the scripts are I'd do som