Issue
js_loader_modules files are taking more time to load which degrades the portal's performance. To identify whether js_loader_modules file is Gzipped or not:
- Open the portal in Chrome incognito window.
- Press F12 and switch to the Network tab.
- Hit http://localhost:8080.
- Search for
js_loader_modules file. - Inside Response Header, search for
Content-Type:text/javascript;charset=UTF-8
Environment
- Liferay DXP 7.0
Resolution
- Fix-pack de-55 or above is required.
- Add these properties in the
portal-ext.properties:# If the user can unzip compressed HTTP content, the GZip filter will
# zip up the HTTP content before sending it to the user. This will speed up
# page rendering for users that are on dial up.
#
com.liferay.portal.servlet.filters.gzip.GZipFilter=true
#
# Enter a URL to automatically launch a browser to that URL when the portal
# has fully initialized. Enter a blank URL to disable this feature.
#
browser.launcher.url= - Delete the following folders:
liferay/osgi/state
liferay/work
tomcat/work
tomcat/temp - Start the server.
Verifying whether the js_loader_modules file is Gzipped or not.
- Open the portal in Chrome incognito window.
- Press F12 and switch to the Network tab.
- Navigate to http://localhost:8080.
- Search for
js_loader_modules file. - Inside
Response Header, search for Content-Encoding: gzip