Saturday, January 31, 2009

[jQuery] Re: jquery and minify

You should keep the headers somewhere, preferably close to the code.
Something like this:

/**
* jQuery
*/
(function($){...............});
/**
* Plugin 1
*/
(function($){...............});
/**
* Plugin 2
*/
(function($){...............});

--
Ariel Flesler
http://flesler.blogspot.com

On Jan 29, 10:53 pm, Sam Sherlock <sam.sherl...@gmail.com> wrote:
> Having just seen this sitehttp://www.highpointvillage.co.uk& running it
> through yslow (it got an f 50/100), one way to improve it would be reducing
> the http requests - but:-
>
> Would combining the scripts on a site like this with minify be contrary to
> the license of jQuery?
> could jquery be minifed in a file with the comment header retained at the
> top of combined file?
> or would one have to have a jquery.js file minified with comment header
> intact and combine the plugins?

No comments: