Uploaded image for project: '{RETIRED} XWiki Skin Extensions'
  1. {RETIRED} XWiki Skin Extensions
  2. XSKINX-49

There should be a preference to set the default loading of js (deferred vs non-deferred)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.14
    • Fix Version/s: 1.22
    • Component/s: Plugin
    • Labels:
      None
    • Similar issues:

      Description

      Since the implementation of XSKINX-35, the default loading of javascript is deferred. This breaks backwards compatibility for existing applications, since before that the scripts were loaded non-deferred. Indeed, there is a parameter to pass to the loading, which can force non-deferred loading, but this parameter implies modifications (sometimes substantial) in existing application.
      Depending on how an application is written, deferred loading can cause a big number of bugs.

      This can be easily fixed by using a preference setting for the default value, where non-deferred can be set wiki wide.

      The existence of such a preferences ensures smoother upgrades, where this optimization can be opted-out, if it causes trouble.

      I propose the name:

      skinx.deferred.default

      for this parameter.

        Attachments

          Activity

            People

            • Assignee:
              lucaa Anca Luca
              Reporter:
              lucaa Anca Luca
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: