minify

Should I combine javascript into one file, or break it into a few files based on change frequency to minimize invalidating the browser cache?

I'm combining my javascript into MD5-digest-versioned files. I have a lot of js libraries that don't change very often. Then I have a set of in-house libraries that change somewhat frequently, and another set of application-specific files that changes constantly. I'm wondering if it's worth the effort to combine javascript into three sep...

Deploying minified versions JS/CSS using Netbeans

I'm a kind of big rookie, using Netbeans 6.9 as a PHP dev tool. Currently I do develop and test locally on my PC using XAMPP/Apache/MySQL and once done, use Netbeans "upload" facility to the production server on the web. I was wondering if there's a Netbeans tool capable of minifying js/CSS files on upload, or a tool to minify the whol...

Any way to use Minify with external (CDN-hosted) stylesheets and scripts?

Hi folks! I'm hoping to use http://code.google.com/p/minify/ - Minify - and it looks really good. However I can't seem to fathom a way to get it to accept external stylesheets and JS script files, especially with the Builder. I am hosting files on Amazon S3 but have set up a CNAME record on my domain so they are accessible from cdn.myd...

YUI compressor added "get " string

Yuicompressor is adding a "get " string onto my javascript minified files ie: }get ,getExecuteProcessUrl:function(){var a=ERDAS.misc.getTilapiaBaseUrl()+"/executeW.do";return a}get ,cbRunStartSuccess:function(a,b){var c={interval:this.DEFAULT_INTERVAL};b.setStatus(a);b.cbSuccess(a); what is causing this? and how can I fix this? ...

Is something wrong with wrapping whole Smarty templates in {strip} tags?

I want to keep my templates tidy and nicely intented but would like to deliver only very compact HTML to the browser. Missing a better idea, I was wondering if there is something wrong with wrapping whole Smarty templates in {strip} tags like so? {strip} <div class="albums"> <h2>Alle Foto-Alben</h2> <ul ...

add items to visual studio solution in msbuild task

I have created a msbuild task that minifies and combines javascript and css files that is triggered when my visual studio project is built. This task adds the minified and combined files to the file system. However I would like that they automatically be added into the visual studio project. Is this possible and if so, how can I achiev...

Javascript and css minifier inbuilt in studio 2010, asp.net mvc application

Is there any tool which can combine all js files and minify them at build time, same for css? We currently do it on release version but it involves lot of manual labor(I just spend 3 hours doing it and then testing). Edit: Just after posting this question i found this .net java yui port But leaving question open, please share your e...

Searching a good Javascript Minifier.

Which one is the best Javascript minifier? ...

Organizing CSS and Javascript in a single template multiproject site.

Let's start with a bit of context. What do I have in my hands? Multiple web applications (All .NET: WebForms and MVC) Common UI template Each application has also it's own UI elements. Multiple files for css/javascript. Some common to all applications, some specific to the application. Tenths of files per page = multiple requests per p...

An efficient way to merge 2 large CSS files

I'm looking for a tool that allows you to merge 2 large CSS files. All the ones I've tried so far (like CSSMerge) haven't worked out. Some of them just randomly remove properties. Others choke on the non-standard properties like -webkit and -moz and give me errors. And I also need something that preserves the case of each rule. CSSMerge ...

Minified JS causes JS to not work

I'm using carabiner for CodeIgniter which can minify all the javascript files it loads. Well, I have about 10 files that work fine, then when minified, they don't... I'm not sure exactly what doesn't work, there are no errors, just certain features that don't work. Is there any particular reason why minifying JavaScript would cause it t...

PHP Minify - Internet Explorer not determining file type

I'm using PHP minify -> http://code.google.com/p/minify/ to minify my javascript files into one document and then supply it to the browser. FF, CHROME, SAFARI all render the dynamic js file correctly when the script is called IE says that min failed and attempts to launch a file download and then is unable to recognize the file type ...

minifying JS code structured in multiple folders and sub-folders

hi... im looking for a JS minifier... i dont need obfuscation... the project has over 100 js files, arranged into a directory hierarchy. i've googled around but couldnt find anything useful. i tried Dean Edwards JavaScript's Packer but got errors in the minified script. my requirement is simple.. i need a software to minify all these...

Javascript - To combine or not combine, that is the question.

Ok, so I know that it's obvious to combine all of a pages Javascript into a single external file for efficiency purposes, but that's not quite the question here. Say I have Default.htm with a search field that has a little Javascript magic attached to it. Then I have Contact.htm with a contact form that has some Javascript magic attach...

minify and combine files - what is your development and release setup?

I am currently using PHP minify to combine and compress the static files (CSS and JS). With PHP minify it is very easy to develop and deploy. Because: Say there are two files: a.js and b.js and we combine and minify them in ab.js. Now its enough for me to include only one script tag: <script type="text/javascript" src="http://static.ex...

Is it better to minify javascript into a single bundle for the whole site, or a specific-to-each-page bundle?

When minifying JavaScripts together in web-development, is it better from the user-loading-time point of view to: make one single big bundle of JavaScript containing all the script, and include this on each page - so each page will probably not need all of it, but once the user has it cached, they don't need to get any further scripts ...

Using PHP minify (link provided), how can ALL comments be suppressed/removed?

Dear all, Using PHP minify (http://code.google.com/p/minify/) how can ALL comments be suppressed/removed from the end result of the minification? At present all comments in javascript files of the format (any number of lines): /* * * comments... * */ Are not being removed and appear in the final minified result (despite the cod...

How to minify aspx pages

Hello, I am developing a web-based Pokemon Online game. Since it is online, I would like to optimize it to run as quickly possible. I've installed Firebug and Page Speed suggests minifying my HTML output. I'm also using VS2008, ASP.NET 3.5, AJAX, and IIS 7.5; along with URL-Rewriting. I want to minify my HTML, JavaScript, and CSS. Opti...

Needed - Visual Studio Custom Build Actions To Minify JS and CSS

I've been using Combres in my applications to compress, combine and minify my javascript and css at run time. This works extremely well and satisfies YSlow perfectly. Now I'm rethinking the whole process for performance reasons, and I'm more so thinking about doing all of this at build time instead of run time. I'm hoping that I can ge...

what is a easy to use free javascript minifier running in ubuntu?

what is a easy to use free javascript minifier running in ubuntu? it should be easy to install as well ;-) ...