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)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.22
    • 1.14
    • Plugin
    • None

    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

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

            Dates

              Created:
              Updated:
              Resolved: