Turn off minifiers and html stripping

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

 

さらにブログ記事を見る

ブログ
What if we want to disable this on the DEV server? Attempting to include JS / CSS into a page / theme.
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+More

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

just convert last 'r' inro 'd'emoticon) also: http://www.liferay.com/web/jorge.ferrer/blog/-/blogs/1757524
I know this is an old thread but it is at the top of search results if you search for "liferay disable javascript minifier".

I went ahead and created myself a bookmarklet that will do this in a single click in case anyone else finds it useful:

javascriptemoticonfunction(){
if (window.location.hostname.toString()=='my-liferay-site.example.com') {
window.location = window.location.toString() + (
window.location.pathname.includes('?')?'&':'?' +
'js_fast_load=0&css_fast_load=0&strip=0'
)
};
})()
I know this is an old thread but it is at the top of search results if you search for "liferay disable javascript minifier".

I went ahead and created myself a bookmarklet that will do this in a single click in case anyone else finds it useful:

1

2
javascript:(function(){
3
  if (window.location.hostname.toString()=='my-liferay-site.example.com') {
4
    window.location = window.location.toString() + (
5
      window.location.pathname.includes('?')?'&':'?' +
6
      'js_fast_load=0&css_fast_load=0&strip=0'
7
    )
8
  };
9
})()