Documentation
Liferay provides a rich store of resources and knowledge to help our community better use and work with our technology.
JavaScript
Set a list of JavaScript files that will be loaded automatically in /html/common/themes/top_js.jsp.
There are two lists of files specified in the properties javascript.barebone.files and javascript.everything.files.
As the name suggests, the barebone list is the minimum list of JavaScript files required for most cases. The everything list includes everything else not listed in the barebone list.
The two lists of files exist for performance reasons because unauthenticated users usually do not utilize all the JavaScript that is available. See the property javascript.barebone.enabled for more information on the logic of when the barebone list is used and when the everything list is used and how to customize that logic.
The list of files are also merged and packed for further performance improvements. See the property javascript.fast.load for more details.
Specify the list of barebone files.
The ordering of the JavaScript files is important.
The Liferay scripts are grouped in such a way, that the first grouping denotes utility scripts that are used by the second and third groups. The second grouping denotes utility classes that rely on the first group, but does not rely on the second or third group. The third grouping denotes modules that rely on the first and second group.
javascript.barebone.files=\
\
#
# YUI core
#
\
aui/yui/yui.js,\
\
#
# YUI modules
#
\
aui/anim-base/anim-base.js,\
aui/anim-color/anim-color.js,\
aui/anim-curve/anim-curve.js,\
aui/anim-easing/anim-easing.js,\
aui/anim-node-plugin/anim-node-plugin.js,\
aui/anim-scroll/anim-scroll.js,\
aui/anim-xy/anim-xy.js,\
aui/arraylist-add/arraylist-add.js,\
aui/arraylist-filter/arraylist-filter.js,\
aui/arraylist/arraylist.js,\
aui/array-extras/array-extras.js,\
aui/array-invoke/array-invoke.js,\
aui/attribute-base/attribute-base.js,\
aui/attribute-complex/attribute-complex.js,\
aui/base-base/base-base.js,\
aui/base-build/base-build.js,\
aui/base-pluginhost/base-pluginhost.js,\
aui/classnamemanager/classnamemanager.js,\
aui/datatype-xml-format/datatype-xml-format.js,\
aui/datatype-xml-parse/datatype-xml-parse.js,\
aui/dom-base/dom-base.js,\
aui/dom-core/dom-core.js,\
aui/dom-screen/dom-screen.js,\
aui/dom-style/dom-style.js,\
aui/event-base/event-base.js,\
aui/event-custom-base/event-custom-base.js,\
aui/event-custom-complex/event-custom-complex.js,\
aui/event-delegate/event-delegate.js,\
aui/event-focus/event-focus.js,\
aui/event-hover/event-hover.js,\
aui/event-key/event-key.js,\
aui/event-mouseenter/event-mouseenter.js,\
aui/event-mousewheel/event-mousewheel.js,\
aui/event-outside/event-outside.js,\
aui/event-resize/event-resize.js,\
aui/event-simulate/event-simulate.js,\
aui/event-synthetic/event-synthetic.js,\
aui/intl/intl.js,\
aui/io-base/io-base.js,\
aui/io-form/io-form.js,\
aui/io-queue/io-queue.js,\
aui/io-upload-iframe/io-upload-iframe.js,\
aui/io-xdr/io-xdr.js,\
aui/json-parse/json-parse.js,\
aui/json-stringify/json-stringify.js,\
aui/node-base/node-base.js,\
aui/node-core/node-core.js,\
aui/node-event-delegate/node-event-delegate.js,\
aui/node-event-simulate/node-event-simulate.js,\
aui/node-focusmanager/node-focusmanager.js,\
aui/node-pluginhost/node-pluginhost.js,\
aui/node-screen/node-screen.js,\
aui/node-style/node-style.js,\
aui/oop/oop.js,\
aui/overlay/overlay.js,\
aui/plugin/plugin.js,\
aui/pluginhost-base/pluginhost-base.js,\
aui/pluginhost-config/pluginhost-config.js,\
aui/querystring-stringify-simple/querystring-stringify-simple.js,\
aui/queue-promote/queue-promote.js,\
aui/selector-css2/selector-css2.js,\
aui/selector-css3/selector-css3.js,\
aui/selector-native/selector-native.js,\
aui/selector/selector.js,\
aui/widget-base/widget-base.js,\
aui/widget-htmlparser/widget-htmlparser.js,\
aui/widget-position-align/widget-position-align.js,\
aui/widget-position-constrain/widget-position-constrain.js,\
aui/widget-position/widget-position.js,\
aui/widget-skin/widget-skin.js,\
aui/widget-stack/widget-stack.js,\
aui/widget-stdmod/widget-stdmod.js,\
aui/widget-uievents/widget-uievents.js,\
aui/yui-throttle/yui-throttle.js,\
\
#
# Alloy core
#
\
aui/aui-base/aui-base.js,\
\
#
# Alloy modules
#
\
aui/aui-aria/aui-aria.js,\
aui/aui-classnamemanager/aui-classnamemanager.js,\
aui/aui-component/aui-component.js,\
aui/aui-debounce/aui-debounce.js,\
aui/aui-delayed-task/aui-delayed-task.js,\
aui/aui-event/aui-event-base.js,\
aui/aui-event/aui-event-input.js,\
aui/aui-form/aui-form-validator.js,\
aui/aui-live-search/aui-live-search.js,\
aui/aui-node/aui-node-base.js,\
aui/aui-node/aui-node-html5-print.js,\
aui/aui-node/aui-node-html5.js,\
aui/aui-overlay/aui-overlay-base.js,\
aui/aui-overlay/aui-overlay-context-panel.js,\
aui/aui-overlay/aui-overlay-context.js,\
aui/aui-overlay/aui-overlay-manager.js,\
aui/aui-overlay/aui-overlay-mask.js,\
aui/aui-selector/aui-selector.js,\
aui/aui-task-manager/aui-task-manager.js,\
\
#
# Liferay module definitions
#
\
liferay/modules.js,\
\
#
# Liferay base utility scripts
#
\
liferay/dependency.js,\
liferay/events.js,\
liferay/language.js,\
liferay/liferay.js,\
liferay/util.js,\
\
#
# Liferay utility scripts
#
\
liferay/portal.js,\
liferay/portlet.js,\
liferay/portlet_sharing.js,\
liferay/workflow.js,\
\
#
# Liferay modules
#
\
liferay/form.js,\
liferay/icon.js,\
liferay/menu.js,\
liferay/notice.js,\
liferay/poller.js
Specify the list of everything files (everything else not already in the list of barebone files).
javascript.everything.files=\
\
#
# YUI modules
#
\
aui/async-queue/async-queue.js,\
aui/cookie/cookie.js,\
aui/event-touch/event-touch.js,\
aui/querystring-stringify/querystring-stringify.js,\
aui/widget-child/widget-child.js,\
\
#
# Alloy modules
#
\
aui/aui-button-item/aui-button-item.js,\
aui/aui-io/aui-io-plugin.js,\
aui/aui-io/aui-io-request.js,\
aui/aui-loading-mask/aui-loading-mask.js,\
aui/aui-parse-content/aui-parse-content.js,\
aui/aui-state-interaction/aui-state-interaction.js,\
\
#
# Liferay modules
#
\
liferay/address.js,\
liferay/dockbar.js,\
liferay/layout_configuration.js,\
liferay/layout_exporter.js,\
liferay/session.js,\
\
#
# Deprecated JS
#
\
liferay/deprecated.js
Set this property to false to always load JavaScript files listed in the property javascript.everything.files. Set this to true to sometimes load javascript.barebone.files and sometimes load javascript.everything.files.
The default logic is coded in com.liferay.portal.events.ServicePreAction in such a way that unauthenticated users get the list of barebone JavaScript files whereas authenticated users get both the list of barebone JavaScript files and the list of everything JavaScript files.
javascript.barebone.enabled=true
Set this property to true to load the packed version of files listed in the properties javascript.barebone.files or javascript.everything.files.
Set this property to false for easier debugging for development. You can also disable fast loading by setting the URL parameter js_fast_load to 0.
javascript.fast.load=true
Input a list of comma delimited properties that are a valid bundle ids for the JavaScript minifier.
javascript.bundle.ids=\
javascript.barebone.files,\
javascript.everything.files
Define a bundle directory for each property listed in javascript.bundle.ids.
javascript.bundle.dir[javascript.barebone.files]=/html/js
javascript.bundle.dir[javascript.everything.files]=/html/js
Define the bundle dependencies using any property listed in javascript.bundle.ids.
javascript.bundle.dependencies[javascript.everything.files]=javascript.barebone.files
Set this to true to enable the display of JavaScript logging.
javascript.log.enabled=false