Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-3411

Consider disabling the AMD loader through dynamic scripts in the head section rather than filtering

    Details

      Description

      Consider removing filtered resources and using this method to disable the AMD loader instead: https://stackoverflow.com/questions/34269886/amd-loader-disable-enable-in-theme

      Basically we could add scripts before and after JSF scripts that disable and enable the AMD loader:

      <script src="disable-amd.js"/>
      <script src="primefaces.js"/>
      <script src="enable-amd.js"/>
      

      If possible we may even be able to do this for all Faces scripts as a group. This would be likely be faster, simpler, and safer than filtering all scripts that are incompatible with Liferay's AMD loader.

      https://stackoverflow.com/questions/43064052/liferay-7-mismatched-anonymous-define/43095755

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Packages

                Version Package
                bridge-ext-5.0.6