[jQuery] Re: Combining jQuery and jQuery UI
Thanks for doing that, and for some reason that works just fine - I don't know what's different about what you did, but it works. I suppose it's that particular minify script, so I'll have to keep that in mind for the future. Thanks again! On Nov 12, 10:56 pm, Karl Swedberg [EMAIL PROTECTED] wrote: Hi Chris, Sorry for the delay in getting back to you. I just tested a page on my server, concatenating and minifying all the files you mentioned -- jQuery core, all the UI files, nymodal plugin, and clueTip plugin. I'm not seeing a problem. Here is a link to the min/concat script I use:http://code.google.com/p/minify/ Here is the test page:http://www.learningjquery.com/examples/concat.html Here is the array of files that are being minified/concatenated: 'js_ui' = array('//js/jquery-1.2.6.min.js', '//ui/ui.core.js', '//ui/effects.core.js', '//ui/effects.blind.js', '//ui/effects.bounce.js', '//ui/effects.clip.js', '//ui/effects.drop.js', '//ui/effects.explode.js', '//ui/effects.fold.js', '//ui/effects.highlight.js', '//ui/effects.pulsate.js', '//ui/effects.scale.js', '//ui/effects.shake.js', '//ui/effects.slide.js', '//ui/effects.transfer.js', '//ui/ui.accordion.js', '//ui/ui.colorpicker.js', '//ui/ui.datepicker.js', '//ui/ui.dialog.js', '//ui/ui.draggable.js', '//ui/ui.droppable.js', '//ui/ui.progressbar.js', '//ui/ui.resizable.js', '//ui/ui.selectable.js', '//ui/ui.slider.js', '//ui/ui.sortable.js', '//ui/ui.spinner.js', '//ui/ui.tabs.js', '//examples/jquery.nyroModal-1.3.0.js', '//examples/jquery.cluetip.js', ), Not sure what else to do. Let me know if I can help, but so far I'm not able to replicate the problem. --Karl Karl Swedbergwww.englishrules.comwww.learningjquery.com On Nov 11, 2008, at 9:49 AM, c.barr wrote: It's been a while without a response and I just wanted to bump this again to see if anyone found out why this was happening or how to get around this issue. On Oct 22, 8:37 am, c.barr [EMAIL PROTECTED] wrote: Also, I've got two plugins I'd like to combine together to save some space, but it's also breaking every time. Cluetip 0.9.8 and NyroModal 1.2.8http://plugins.jquery.com/project/cluetip/http://nyromodal.nyrodev.co... I can combine these just fine, and NyroModal seems to work, but it always breaks on the Cluetip functions saying insertionType is not defined On Oct 21, 2:26 pm, c.barr [EMAIL PROTECTED] wrote: Yes, it's being listed first. Can someone else please try and do this to verify it? I just want to make sure I'm not missing something simple. On Oct 21, 12:16 pm, Karl Swedberg [EMAIL PROTECTED] wrote: Are you making sure that the jquery core file is at the top of that concatenated file? that's the only other thing I can think of that would produce the error. --Karl Karl Swedbergwww.englishrules.comwww.learningjquery.com On Oct 20, 2008, at 4:26 PM,c.barrwrote: They already have the semicolons straight from jQuery, so no changes were needed. Any other suggestions? On Oct 16, 5:16 pm, Mike Alsup [EMAIL PROTECTED] wrote: I'd like to combine and compress my jQuery and jQuery UI files into a single minified file, but I've noticed that every time I do this It just breaks and gives me $ is not defined. If I do a copy/paste of the two uncompressed files together, it works fine but it's a 100kb file! When I got to minify or pack this file, that's when it always breaks. I've tried Dean Edwards packer, JSmin, and YUI all with the same results. The same goes for any jQuery plugins I've downloaded. I'm using a several that I need avalible on all pages, and I'd like to combine them - these also break when I do this. Am I missing something here? Make sure each file has a leading and a trailing semicolon.
[jQuery] Re: Combining jQuery and jQuery UI
I wish I could edit posts I did just notice something - the file size here is much larger than what the 4 files were on their own - why is this? On their own: jQuery:.55k jQuery.UI:.63k Cluetip:.29k NyroModal:...27k Total: about 180k The new combined file is 316k - nearly three times the size. It's nice to have it all in one place, but my goal was to reduce http requests and transfer size. Any insight on how to get this down further? On Nov 12, 10:56 pm, Karl Swedberg [EMAIL PROTECTED] wrote: Hi Chris, Sorry for the delay in getting back to you. I just tested a page on my server, concatenating and minifying all the files you mentioned -- jQuery core, all the UI files, nymodal plugin, and clueTip plugin. I'm not seeing a problem. Here is a link to the min/concat script I use:http://code.google.com/p/minify/ Here is the test page:http://www.learningjquery.com/examples/concat.html Here is the array of files that are being minified/concatenated: 'js_ui' = array('//js/jquery-1.2.6.min.js', '//ui/ui.core.js', '//ui/effects.core.js', '//ui/effects.blind.js', '//ui/effects.bounce.js', '//ui/effects.clip.js', '//ui/effects.drop.js', '//ui/effects.explode.js', '//ui/effects.fold.js', '//ui/effects.highlight.js', '//ui/effects.pulsate.js', '//ui/effects.scale.js', '//ui/effects.shake.js', '//ui/effects.slide.js', '//ui/effects.transfer.js', '//ui/ui.accordion.js', '//ui/ui.colorpicker.js', '//ui/ui.datepicker.js', '//ui/ui.dialog.js', '//ui/ui.draggable.js', '//ui/ui.droppable.js', '//ui/ui.progressbar.js', '//ui/ui.resizable.js', '//ui/ui.selectable.js', '//ui/ui.slider.js', '//ui/ui.sortable.js', '//ui/ui.spinner.js', '//ui/ui.tabs.js', '//examples/jquery.nyroModal-1.3.0.js', '//examples/jquery.cluetip.js', ), Not sure what else to do. Let me know if I can help, but so far I'm not able to replicate the problem. --Karl Karl Swedbergwww.englishrules.comwww.learningjquery.com On Nov 11, 2008, at 9:49 AM, c.barr wrote: It's been a while without a response and I just wanted to bump this again to see if anyone found out why this was happening or how to get around this issue. On Oct 22, 8:37 am, c.barr [EMAIL PROTECTED] wrote: Also, I've got two plugins I'd like to combine together to save some space, but it's also breaking every time. Cluetip 0.9.8 and NyroModal 1.2.8http://plugins.jquery.com/project/cluetip/http://nyromodal.nyrodev.co... I can combine these just fine, and NyroModal seems to work, but it always breaks on the Cluetip functions saying insertionType is not defined On Oct 21, 2:26 pm, c.barr [EMAIL PROTECTED] wrote: Yes, it's being listed first. Can someone else please try and do this to verify it? I just want to make sure I'm not missing something simple. On Oct 21, 12:16 pm, Karl Swedberg [EMAIL PROTECTED] wrote: Are you making sure that the jquery core file is at the top of that concatenated file? that's the only other thing I can think of that would produce the error. --Karl Karl Swedbergwww.englishrules.comwww.learningjquery.com On Oct 20, 2008, at 4:26 PM,c.barrwrote: They already have the semicolons straight from jQuery, so no changes were needed. Any other suggestions? On Oct 16, 5:16 pm, Mike Alsup [EMAIL PROTECTED] wrote: I'd like to combine and compress my jQuery and jQuery UI files into a single minified file, but I've noticed that every time I do this It just breaks and gives me $ is not defined. If I do a copy/paste of the two uncompressed files together, it works fine but it's a 100kb file! When I got to minify or pack this file, that's when it always breaks. I've tried Dean Edwards packer, JSmin, and YUI all with the same results. The same goes for any jQuery plugins I've downloaded. I'm using a several that I need avalible on all pages, and I'd like to combine them - these also break when I do this. Am I missing something here? Make sure each file has a leading and a trailing semicolon.
[jQuery] Re: Combining jQuery and jQuery UI
Hi Chris, Actually, for me it's showing as 76k total. Here is a screenshot: http://skitch.com/kswedberg/5icb/minify-concat look at min?g=js_ui --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 14, 2008, at 10:35 AM, c.barr wrote: I wish I could edit posts I did just notice something - the file size here is much larger than what the 4 files were on their own - why is this? On their own: jQuery:.55k jQuery.UI:.63k Cluetip:.29k NyroModal:...27k Total: about 180k The new combined file is 316k - nearly three times the size. It's nice to have it all in one place, but my goal was to reduce http requests and transfer size. Any insight on how to get this down further? On Nov 12, 10:56 pm, Karl Swedberg [EMAIL PROTECTED] wrote: Hi Chris, Sorry for the delay in getting back to you. I just tested a page on my server, concatenating and minifying all the files you mentioned -- jQuery core, all the UI files, nymodal plugin, and clueTip plugin. I'm not seeing a problem. Here is a link to the min/concat script I use:http://code.google.com/p/minify/ Here is the test page:http://www.learningjquery.com/examples/concat.html Here is the array of files that are being minified/concatenated: 'js_ui' = array('//js/jquery-1.2.6.min.js', '//ui/ui.core.js', '//ui/effects.core.js', '//ui/effects.blind.js', '//ui/effects.bounce.js', '//ui/effects.clip.js', '//ui/effects.drop.js', '//ui/effects.explode.js', '//ui/effects.fold.js', '//ui/effects.highlight.js', '//ui/effects.pulsate.js', '//ui/effects.scale.js', '//ui/effects.shake.js', '//ui/effects.slide.js', '//ui/effects.transfer.js', '//ui/ui.accordion.js', '//ui/ui.colorpicker.js', '//ui/ui.datepicker.js', '//ui/ui.dialog.js', '//ui/ui.draggable.js', '//ui/ui.droppable.js', '//ui/ui.progressbar.js', '//ui/ui.resizable.js', '//ui/ui.selectable.js', '//ui/ui.slider.js', '//ui/ui.sortable.js', '//ui/ui.spinner.js', '//ui/ui.tabs.js', '//examples/jquery.nyroModal-1.3.0.js', '//examples/jquery.cluetip.js', ), Not sure what else to do. Let me know if I can help, but so far I'm not able to replicate the problem. --Karl Karl Swedbergwww.englishrules.comwww.learningjquery.com On Nov 11, 2008, at 9:49 AM, c.barr wrote: It's been a while without a response and I just wanted to bump this again to see if anyone found out why this was happening or how to get around this issue. On Oct 22, 8:37 am, c.barr [EMAIL PROTECTED] wrote: Also, I've got two plugins I'd like to combine together to save some space, but it's also breaking every time. Cluetip 0.9.8 and NyroModal 1.2.8http://plugins.jquery.com/project/cluetip/http://nyromodal.nyrodev.co ... I can combine these just fine, and NyroModal seems to work, but it always breaks on the Cluetip functions saying insertionType is not defined On Oct 21, 2:26 pm, c.barr [EMAIL PROTECTED] wrote: Yes, it's being listed first. Can someone else please try and do this to verify it? I just want to make sure I'm not missing something simple. On Oct 21, 12:16 pm, Karl Swedberg [EMAIL PROTECTED] wrote: Are you making sure that the jquery core file is at the top of that concatenated file? that's the only other thing I can think of that would produce the error. --Karl Karl Swedbergwww.englishrules.comwww.learningjquery.com On Oct 20, 2008, at 4:26 PM,c.barrwrote: They already have the semicolons straight from jQuery, so no changes were needed. Any other suggestions? On Oct 16, 5:16 pm, Mike Alsup [EMAIL PROTECTED] wrote: I'd like to combine and compress my jQuery and jQuery UI files into a single minified file, but I've noticed that every time I do this It just breaks and gives me $ is not defined. If I do a copy/paste of the two uncompressed files together, it works fine but it's a 100kb file! When I got to minify or pack this file, that's when it always breaks. I've tried Dean Edwards packer, JSmin, and YUI all with the same results. The same goes for any jQuery plugins I've downloaded. I'm using a several that I need avalible on all pages, and I'd like to combine them - these also break when I do this. Am I missing something here? Make sure each file has a leading and a trailing semicolon.
[jQuery] Re: Combining jQuery and jQuery UI
I did a copy/paste from the site and I opened up the JS file in my browser and did a save-as and both times it was about 314k on disk. It looks like your server has GZIP, and thats why it's appearing as 76k. It's 76k of transfer, but deflated from GZIP it's about 314k: screenshot from YSlow: http://twitpic.com/ls90/full On my server using the files and sizes specified above with GZIP are as follows: --Normal--GZIP - jQuery:.55k.16k jQuery.UI:.63k.25k Cluetip:.29k.6k NyroModal:...27k.9k - Total:...180k ...56k So, 76k vs 56k isn't that bad, I'll probably use the combined file just for simplicity and less files to download - and I just realized your file is slightly larger because there's a few UI components I left out. I'll try and build it the way I need it and use that Is the minify script you linked to avalible for use on a website? I ask because we're running ASP.NET here and I don't think it's a good idea to install PHP along side that.
[jQuery] Re: Combining jQuery and jQuery UI
Hi Chris, Sorry for the delay in getting back to you. I just tested a page on my server, concatenating and minifying all the files you mentioned -- jQuery core, all the UI files, nymodal plugin, and clueTip plugin. I'm not seeing a problem. Here is a link to the min/concat script I use: http://code.google.com/p/minify/ Here is the test page: http://www.learningjquery.com/examples/concat.html Here is the array of files that are being minified/concatenated: 'js_ui' = array('//js/jquery-1.2.6.min.js', '//ui/ui.core.js', '//ui/effects.core.js', '//ui/effects.blind.js', '//ui/effects.bounce.js', '//ui/effects.clip.js', '//ui/effects.drop.js', '//ui/effects.explode.js', '//ui/effects.fold.js', '//ui/effects.highlight.js', '//ui/effects.pulsate.js', '//ui/effects.scale.js', '//ui/effects.shake.js', '//ui/effects.slide.js', '//ui/effects.transfer.js', '//ui/ui.accordion.js', '//ui/ui.colorpicker.js', '//ui/ui.datepicker.js', '//ui/ui.dialog.js', '//ui/ui.draggable.js', '//ui/ui.droppable.js', '//ui/ui.progressbar.js', '//ui/ui.resizable.js', '//ui/ui.selectable.js', '//ui/ui.slider.js', '//ui/ui.sortable.js', '//ui/ui.spinner.js', '//ui/ui.tabs.js', '//examples/jquery.nyroModal-1.3.0.js', '//examples/jquery.cluetip.js', ), Not sure what else to do. Let me know if I can help, but so far I'm not able to replicate the problem. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 11, 2008, at 9:49 AM, c.barr wrote: It's been a while without a response and I just wanted to bump this again to see if anyone found out why this was happening or how to get around this issue. On Oct 22, 8:37 am, c.barr [EMAIL PROTECTED] wrote: Also, I've got two plugins I'd like to combine together to save some space, but it's also breaking every time. Cluetip 0.9.8 and NyroModal 1.2.8http://plugins.jquery.com/project/cluetip/http://nyromodal.nyrodev.com/#download I can combine these just fine, and NyroModal seems to work, but it always breaks on the Cluetip functions saying insertionType is not defined On Oct 21, 2:26 pm, c.barr [EMAIL PROTECTED] wrote: Yes, it's being listed first. Can someone else please try and do this to verify it? I just want to make sure I'm not missing something simple. On Oct 21, 12:16 pm, Karl Swedberg [EMAIL PROTECTED] wrote: Are you making sure that the jquery core file is at the top of that concatenated file? that's the only other thing I can think of that would produce the error. --Karl Karl Swedbergwww.englishrules.comwww.learningjquery.com On Oct 20, 2008, at 4:26 PM,c.barrwrote: They already have the semicolons straight from jQuery, so no changes were needed. Any other suggestions? On Oct 16, 5:16 pm, Mike Alsup [EMAIL PROTECTED] wrote: I'd like to combine and compress my jQuery and jQuery UI files into a single minified file, but I've noticed that every time I do this It just breaks and gives me $ is not defined. If I do a copy/paste of the two uncompressed files together, it works fine but it's a 100kb file! When I got to minify or pack this file, that's when it always breaks. I've tried Dean Edwards packer, JSmin, and YUI all with the same results. The same goes for any jQuery plugins I've downloaded. I'm using a several that I need avalible on all pages, and I'd like to combine them - these also break when I do this. Am I missing something here? Make sure each file has a leading and a trailing semicolon.
[jQuery] Re: Combining jQuery and jQuery UI
It's been a while without a response and I just wanted to bump this again to see if anyone found out why this was happening or how to get around this issue. On Oct 22, 8:37 am, c.barr [EMAIL PROTECTED] wrote: Also, I've got two plugins I'd like to combine together to save some space, but it's also breaking every time. Cluetip 0.9.8 and NyroModal 1.2.8http://plugins.jquery.com/project/cluetip/http://nyromodal.nyrodev.com/#download I can combine these just fine, and NyroModal seems to work, but it always breaks on the Cluetip functions saying insertionType is not defined On Oct 21, 2:26 pm, c.barr [EMAIL PROTECTED] wrote: Yes, it's being listed first. Can someone else please try and do this to verify it? I just want to make sure I'm not missing something simple. On Oct 21, 12:16 pm, Karl Swedberg [EMAIL PROTECTED] wrote: Are you making sure that the jquery core file is at the top of that concatenated file? that's the only other thing I can think of that would produce the error. --Karl Karl Swedbergwww.englishrules.comwww.learningjquery.com On Oct 20, 2008, at 4:26 PM,c.barrwrote: They already have the semicolons straight from jQuery, so no changes were needed. Any other suggestions? On Oct 16, 5:16 pm, Mike Alsup [EMAIL PROTECTED] wrote: I'd like to combine and compress my jQuery and jQuery UI files into a single minified file, but I've noticed that every time I do this It just breaks and gives me $ is not defined. If I do a copy/paste of the two uncompressed files together, it works fine but it's a 100kb file! When I got to minify or pack this file, that's when it always breaks. I've tried Dean Edwards packer, JSmin, and YUI all with the same results. The same goes for any jQuery plugins I've downloaded. I'm using a several that I need avalible on all pages, and I'd like to combine them - these also break when I do this. Am I missing something here? Make sure each file has a leading and a trailing semicolon.
[jQuery] Re: Combining jQuery and jQuery UI
Here's the UI files I'm using: * - UI Core * - Draggable * - Droppable * - Resizable * - Sortable * - Accordion * - Dialog * - Progressbar * - Effects Core * - Effect Blind * - Effect Bounce * - Effect Clip * - Effect Drop * - Effect Highlight * - Effect Pulsate * - Effect Scale * - Effect Shake * - Effect Slide * - Effect Transfer On Oct 22, 7:25 am, Karl Swedberg [EMAIL PROTECTED] wrote: Chris, I'd be happy to test it over here. Would you mind listing out the files that you're concatenating -- jquery core file + which UI files? I want to make sure I'm replicating exactly what you're doing. Thanks. --Karl On Oct 21, 2008, at 3:26 PM, c.barr wrote: Yes, it's being listed first. Can someone else please try and do this to verify it? I just want to make sure I'm not missing something simple. On Oct 21, 12:16 pm, Karl Swedberg [EMAIL PROTECTED] wrote: Are you making sure that the jquery core file is at the top of that concatenated file? that's the only other thing I can think of that would produce the error. --Karl Karl Swedbergwww.englishrules.comwww.learningjquery.com On Oct 20, 2008, at 4:26 PM, c.barr wrote: They already have the semicolons straight from jQuery, so no changes were needed. Any other suggestions? On Oct 16, 5:16 pm, Mike Alsup [EMAIL PROTECTED] wrote: I'd like to combine and compress my jQuery and jQuery UI files into a single minified file, but I've noticed that every time I do this It just breaks and gives me $ is not defined. If I do a copy/paste of the two uncompressed files together, it works fine but it's a 100kb file! When I got to minify or pack this file, that's when it always breaks. I've tried Dean Edwards packer, JSmin, and YUI all with the same results. The same goes for any jQuery plugins I've downloaded. I'm using a several that I need avalible on all pages, and I'd like to combine them - these also break when I do this. Am I missing something here? Make sure each file has a leading and a trailing semicolon.
[jQuery] Re: Combining jQuery and jQuery UI
Also, I've got two plugins I'd like to combine together to save some space, but it's also breaking every time. Cluetip 0.9.8 and NyroModal 1.2.8 http://plugins.jquery.com/project/cluetip/ http://nyromodal.nyrodev.com/#download I can combine these just fine, and NyroModal seems to work, but it always breaks on the Cluetip functions saying insertionType is not defined On Oct 21, 2:26 pm, c.barr [EMAIL PROTECTED] wrote: Yes, it's being listed first. Can someone else please try and do this to verify it? I just want to make sure I'm not missing something simple. On Oct 21, 12:16 pm, Karl Swedberg [EMAIL PROTECTED] wrote: Are you making sure that the jquery core file is at the top of that concatenated file? that's the only other thing I can think of that would produce the error. --Karl Karl Swedbergwww.englishrules.comwww.learningjquery.com On Oct 20, 2008, at 4:26 PM,c.barrwrote: They already have the semicolons straight from jQuery, so no changes were needed. Any other suggestions? On Oct 16, 5:16 pm, Mike Alsup [EMAIL PROTECTED] wrote: I'd like to combine and compress my jQuery and jQuery UI files into a single minified file, but I've noticed that every time I do this It just breaks and gives me $ is not defined. If I do a copy/paste of the two uncompressed files together, it works fine but it's a 100kb file! When I got to minify or pack this file, that's when it always breaks. I've tried Dean Edwards packer, JSmin, and YUI all with the same results. The same goes for any jQuery plugins I've downloaded. I'm using a several that I need avalible on all pages, and I'd like to combine them - these also break when I do this. Am I missing something here? Make sure each file has a leading and a trailing semicolon.
[jQuery] Re: Combining jQuery and jQuery UI
Are you making sure that the jquery core file is at the top of that concatenated file? that's the only other thing I can think of that would produce the error. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 20, 2008, at 4:26 PM, c.barr wrote: They already have the semicolons straight from jQuery, so no changes were needed. Any other suggestions? On Oct 16, 5:16 pm, Mike Alsup [EMAIL PROTECTED] wrote: I'd like to combine and compress my jQuery and jQuery UI files into a single minified file, but I've noticed that every time I do this It just breaks and gives me $ is not defined. If I do a copy/paste of the two uncompressed files together, it works fine but it's a 100kb file! When I got to minify or pack this file, that's when it always breaks. I've tried Dean Edwards packer, JSmin, and YUI all with the same results. The same goes for any jQuery plugins I've downloaded. I'm using a several that I need avalible on all pages, and I'd like to combine them - these also break when I do this. Am I missing something here? Make sure each file has a leading and a trailing semicolon.
[jQuery] Re: Combining jQuery and jQuery UI
They already have the semicolons straight from jQuery, so no changes were needed. Any other suggestions? On Oct 16, 5:16 pm, Mike Alsup [EMAIL PROTECTED] wrote: I'd like to combine and compress my jQuery and jQuery UI files into a single minified file, but I've noticed that every time I do this It just breaks and gives me $ is not defined. If I do a copy/paste of the two uncompressed files together, it works fine but it's a 100kb file! When I got to minify or pack this file, that's when it always breaks. I've tried Dean Edwards packer, JSmin, and YUI all with the same results. The same goes for any jQuery plugins I've downloaded. I'm using a several that I need avalible on all pages, and I'd like to combine them - these also break when I do this. Am I missing something here? Make sure each file has a leading and a trailing semicolon.
[jQuery] Re: Combining jQuery and jQuery UI
I'd like to combine and compress my jQuery and jQuery UI files into a single minified file, but I've noticed that every time I do this It just breaks and gives me $ is not defined. If I do a copy/paste of the two uncompressed files together, it works fine but it's a 100kb file! When I got to minify or pack this file, that's when it always breaks. I've tried Dean Edwards packer, JSmin, and YUI all with the same results. The same goes for any jQuery plugins I've downloaded. I'm using a several that I need avalible on all pages, and I'd like to combine them - these also break when I do this. Am I missing something here? Make sure each file has a leading and a trailing semicolon.