Liferay Portal has added a new feature so that users can hide Liferay's AMD loader to avoid errors like LPP-23167. In Liferay Faces we worked around errors like this by filtering JS resources served by PrimeFaces and RichFaces to ignore the AMD loader (see
FACES-2563 and FACES-2678). Now when users have hidden the loader, the bridge should avoid filtering the resources to improve performance. The bridge can achieve this by getting the value of the Expose Global setting via ConfigurationAdmin.listConfigurations() and turning off filtering if Expose Global is false. See this comment for more details.