Payment of ₹ requested by HONEY VIG. Click the link to pay securely via Razorpay: Make 5000 payment Payment of ₹ requested by HONEY VIG. Click the link to pay securely via Razorpay: Make 5000 payment ⭐ If you would like to buy me a coffee, well thank you very much that is mega kind! : https://www.buymeacoffee.com/honeyvig
Hire a web Developer and Designer to upgrade and boost your online presence with cutting edge Technologies
Showing posts with label asp. Show all posts
Showing posts with label asp. Show all posts

Saturday, April 21, 2012

Tools for concatenating and minifying CSS and JavaScript files in different development environments

I wanted to put together a good list of tools and approaches to concatenate and minify CSS and JavaScript files in different developing environments.

Based on my own experience and research, and the replies when I asked around what others use, I have listed suggested solutions below:

PHP

Minify
Minify combines multiple CSS or JavaScript files, removes unnecessary whitespace and comments, and serves them with gzip encoding and optimal client-side cache headers.
Combine
PHP script combined with URL rewriting to concatenate and compress CSS and JavaScript files.
SmartOptimizer
A PHP library that enhances your website performance by optimizing the front end using techniques such as minifying, compression, caching, concatenation and embedding. All the work is done on the fly on demand.
CSSTidy
Compression of CSS files. Note: no support for JavaScript files.
JSMin+
PHP-based and it parses the JavaScript. Note: no support for CSS files.
CSScaffold
Compresses, caches and gzips CSS on-the-fly. Note: no support for JavaScript files.
CSS-JS-Booster
Concats, minifies and gzips CSS and JavaScript files.
CSS Crush
Concats and minifies CSS files.

Django

Django Static Management
Intended as an easy way to manage multiple static text assets (CSS and Javascript) in a Django projects.
Django compressor
Compresses linked and inline javascript or CSS into a single cached file.
django-compress
django-compress provides an automated system for compressing CSS and JavaScript files. Note: Doesn’t support concatenation of files..
Deploying compacted javascript with django
Management command to compatct JavaScript. Note: No support for CSS files..
Templatetag for JavaScript merging and compression
A templatetag that merges several JavaScript files (compressing its code) into only one JavaScript file. Note: No support for CSS files..

Ruby

Sprockets
Sprockets is a Ruby library that preprocesses and concatenates JavaScript source files.
Juicer
Compresses CSS and JavaScript code, JSLints it and also supports Data URI-embedding of images in CSS files.
Jammit
Jammit is providing both CSS and JavaScript concatenation and compression, as well as YUI Compressor and Closure Compiler compatibility, ahead-of-time gzipping, built-in JavaScript template support, and optional Data-URI / MHTML image embedding.
AssetPackager
Merges and compresses JavaScript and CSS when running in production.

Java

YUI Compressor
The leading tool in the for compressing CSS and JavaScript files, and could easily be ported/encapsulated into other environments. Note: Doesn’t support concatenation of files.. Could be used in conjunction with an Ant task, as described in Building Web Applications With Apache Ant
Google Closure Compiler
Google Compiler for JavaScript that supports various compressing options for JavaScript. Note: no support for CSS files.
Jawr
Supports concatenation and minification of CSS and JavaScript files.
Granule
Combines and compresses CSS and JavaScript files.

.Net

YUI Compressor for .Net
A .NET port of the Yahoo! UI Library’s YUI Compressor Java project.
Packer for .NET
A tool to pack/minify CSS and JavaScript files.
Microsoft Ajax Minifier
A tool to concatenate and minify JavaScript files. Note: no support for CSS files.
CombineAndMinify
A tool to concatenate and minify CSS and JavaScript files.
StyleManager
A tool to concatenate and compress CSS files.

Other tools or approaches?

Please let me know, by writing a comment, if you want to suggest other tools, so I can update this list and keep it as accurate and useful as possible!

Tuesday, January 24, 2012

Windows Azure: How-to enable classic ASP support

When you’re planning to migrate your existing application to Windows Azure, one of the first things in your compatibility checklist is the compatibility of your app with Windows Azure. Classic ASP web application is always the concern when planning to host on a server. This is because by default, the current/new web servers does not support classic ASP codes. The administrators have to enable it manually.
If you’re familiar with Microsoft Internet Information Service (IIS) server, you know that you will have to manually enable the classic ASP support in IIS. It’s the same in Windows Azure. You will have to specify or ask Windows Azure to enable classic ASP support in your web role.
The easiest way to do this is to do it in the start up task. You will need to add some codes in the .csdef file.
  1. Load Visual Studio and open your Solution.
  2. Double-click on the .csdef file from the Windows Azure project. azure_solutionProject
  3. In the WebRole tag, add a Startup tag. Then add a Task tag within the Startup tag. azure_startupTask_classicAsp
    Description of the Task tag:
CommandLine : This is the command line including the parameter to execute.
ExecutionContext : You can specify an executionContext that allows it to run in the same security context as the role or with administrative privileges.
TaskType : Here you can specify how this task is scheduled.
  • Simple – the startup process launches the task and does not proceed until the task completes.
  • Background – the startup process launches the task in the background and then continues
  • Foreground – similiar to a background task, but the role cannot shut down until all the foreground task have ended.