How to compress inline js?

Jul 22, 2011 at 1:28 AM

Hi guys,

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



Jul 29, 2011 at 12:31 PM

@cosmopolinet: Combres doesn't handle inline JavaScript.  Compressing the whole 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 1:22 PM
Edited Nov 13, 2014 at 1: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.