« Back

Turn off minifiers and html stripping

August 31, 2010 By Igor Spasić

Portal minifies JS and CSS; and optimizes HTML (by stripping unnecessary characters, etc). Such files are optimized for production, but not for humans :) that dig into the code during development or debugging.

To disable minifiers and html stripping, append the following parameters to the URL line:

&js_fast_load=0&css_fast_load=0&strip=0

 

Showing 6 Comments

Jason Reast-Jones
9/3/10 1:39 AM

Hi Igor,

I was under the impression you also had to include css_fast_load=0 if you wanted the uncompressed, unmerged CSS files.

Jason

Igor Spasić
9/3/10 1:53 AM

your impression was
good
forgive me, i am a
newb

;)

Jakub B
11/2/10 12:25 PM

What if we want to disable this on the DEV server? Attempting to include JS / CSS into a page / theme.

Jason Reast-Jones
11/2/10 3:20 PM

Hey Jakub, take a look at portal.properties there's a commented out include for portal-developer.properties, you can also enable it by following this wiki article http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Liferay+Developer+Mo­re

Jason

Igor Spasić
11/3/10 1:29 AM

I believe that correct link is: http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Liferay+Developer+Mo­de

just convert last 'r' inro 'd'emoticon) also: http://www.liferay.com/web/jorge.ferrer/blog/-/blogs/1757524

Jason Reast-Jones
11/3/10 1:37 AM

Thanks Igor, I was posting from my phone!