How to compress inline js?

Jul 22, 2011 at 12:28 AM

Hi guys,

how are you doing? Is there any way we can compress inline javascript?

 

Cheers.

Coordinator
Jul 29, 2011 at 11:31 AM

@cosmopolinet: Combres doesn't handle inline JavaScript.  Compressing the whole asp.net pages, including their inline scripts is pretty well known act though, Google should point to you to some http module that does that.

Nov 13, 2014 at 12:22 PM
Edited Nov 13, 2014 at 12:23 PM
Yes, there are multiple ways of compressing inlined Javascript. The first and easiest method is using one of the many available online Javascript compressors like here or here. You just copy the inlined Javascript code from your source code and implement it in the compressor to automatically compress your code.

The next thing you should always do is enable Gzip compression which will compress your entire source code even further. You can do this by using the .htaccess file. Find more info about that here.