Is it possible to reduce the size of the portal download combo?Is it possible to reduce the size of the portal download combo?https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1218322442024-03-29T13:19:20Z2024-03-29T13:19:20ZIs it possible to reduce the size of the portal download combo?Francisco Javier Riverahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1218322432023-06-01T12:07:18Z2023-06-01T12:07:17Z<p>Liferay version 7.3</p>
<p>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:</p>
<p>"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"</p>
<p>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?</p>
<p> </p>
<p>Thank you very much!</p>