How to minify and deliver JS and CSS using Cloudimage?

Cloudimage enables CDN delivery of static content (CSS,Javascript etc) and also helps to minify it.

Minification is the process of minimizing code and markup in your web pages and script files. It's one of the most common techniques for reducing website load times and bandwidth utilisation. The speed and accessibility of a website are substantially improved when it is minified.

 

There are 2 ways to achieve CDN delivery of static content (CSS,Javascript etc) and also minify it :

1. Enable "Static Content Delivery" from your Cloudimage admin (Settings->Image Settings->Compression). And use URL parameter "process=minify-js" or "process=minify-css" for Javascript and CSS respectively.

2. Use URL parameters "func=proxy" and  "process=minify-js" /"process=minify-css".

URL parameter "func=proxy" is required if Static Content Delivery is not enabled since by default all URLs are regarded as images.

Example:

/sample.li/bootstrap.css?func=proxy&process=minify-css

/sample.li/jquery.js?func=proxy&process=minify-js

 

If you have any questions or issues feel free to reach out to our Support Team, we would be happy to assist you.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.