- AUI().ready(fn): This function will execute after the HTML in the page has finished loading. Portlets loaded via AJAX cannot be included here
- Liferay.Portlet.ready(fn): This function will execute after each portlet on the page has loaded. The callback receives two parameters:
portletId
andnode
.portletId
is the ID of the portlet that was just loaded.node
is the Alloy Node object of the same portlet. - Liferay.on(‘allPortletsReady’, fn): This function will execute after everything else (including AJAX portlets) has finished loading.