Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Is it possible to reduce the size of the portal download combo?
Liferay version 7.3
We are trying to reduce the page load and we have found that there is a very large combo url. The url is Liferay's own url, the one of the portal:
"combo?browserId=chrome&minifierType=js&languageId=en_US&t=1685590875069&/o/frontend-js-aui-web/aui/aui/aui/aui.js&/o/frontend-js-aui-web/liferay/modules. js&/o/frontend-js-aui-web/liferay/aui_sandbox.js&/o/frontend-js-aui-web/aui/attribute-base/attribute-base.js&/o/frontend-js-aui-web/aui/attribute-complex/attribute-complex. js&/o/frontend-js-aui-web/aui/attribute-core/attribute-core.js&/o/frontend-js-aui-web/aui/attribute-observable/attribute-observable.js&/o/frontend-js-aui-web/aui/attribute-extras/attribute-extras.js&/o/frontend-js-aui-web/aui/event-custom-base/event-custom-base. js&/o/frontend-js-aui-web/aui/event-custom-complex/event-custom-complex.js&/o/frontend-js-aui-web/aui/oop/oop.js&/o/frontend-js-aui-web/aui/aui-base-lang/aui-base-lang. js&/o/frontend-js-aui-web/liferay/dependency.js&/o/frontend-js-aui-web/liferay/util.js&/o/frontend-js-web/loader/config. js&/o/frontend-js-web/loader/loader.js&/o/frontend-js-web/liferay/dom_task_runner.js&/o/frontend-js-web/liferay/events.js&/o/frontend-js-web/liferay/lazy_load. js&/o/frontend-js-web/liferay/liferay/liferay.js&/o/frontend-js-web/liferay/global.bundle.js&/o/frontend-js-web/liferay/portlet.js&/o/frontend-js-web/liferay/workflow.js"
We have been investigating and we have seen that this url is generated by 'TopHeadDynamicInclude' and that those JS are requested by modules like 'frontend-js-aui-web', we have generated a custom DynamicInclude to be able to modify the functionality (and we have introduced the original DynamicInclude in the OSGI blacklist), so far so good.. but when we try to remove some JS it fails us at JavaScript level (undefined objects), something really logical... our question is, is it possible to reduce this combo correctly? i.e. can we reduce that number of JS without dying in the attempt?
Thank you very much!
Powered by Liferay™