Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-26272

Stop loading Prototype.js and Scriptaculous on every page

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 17.10.0
    • None
    • Unknown

    Description

      Every page of XWiki Standard loads Prototype.js and Scriptaculous, although most pages do not use them. prototype.js alone weighs 195 KB, is served unminified and blocks rendering. Prototype.js also breaks standard JavaScript APIs (XWIKI-20183, XWIKI-22377) and had a known vulnerability (XWIKI-24358).

      XWIKI-25157 already removed Prototype.js from part of the legacy code. Its comments list the code that still depends on it. Each remaining step is a sub-task of this issue.

      Done criterion

      XWiki Standard no longer loads Prototype.js and Scriptaculous on every page, and none of its modules needs them.

      Risks

      Extensions and wiki pages may rely on the globally loaded Prototype.js, on the Prototype.js based xwiki:* events, or on APIs such as XWiki.FormField. The first sub-task agrees on how they keep working during the transition.

      This issue depends on the migration of the remaining live tables to Live Data, which removes livetable.js and usersandgroups.js.

      Attachments

        Issue Links

          1.
          Agree on how code that relies on Prototype.js keeps working while XWiki Standard stops loading it Sub-task Open Unassigned
          2.
          Stop using Prototype.js in xwiki.js Sub-task Open Unassigned
          3.
          Stop using Prototype.js in the legacy suggest widget and its users Sub-task Open Unassigned
          4.
          Stop using Prototype.js in the action buttons and their cancellable events Sub-task Open Unassigned
          5.
          Stop using Prototype.js in confirmedAjaxRequest.js Sub-task Open Unassigned
          6.
          Stop using Prototype.js and Scriptaculous in the dashboard Sub-task Open Unassigned
          7.
          Stop using Prototype.js in the Extension Manager, Distribution Wizard and import UIs Sub-task Open Unassigned
          8.
          Stop using Prototype.js in the comments viewer Sub-task Open Unassigned
          9.
          Stop using Prototype.js and Scriptaculous in the panels UI Sub-task Open Unassigned
          10.
          Stop using Prototype.js in the Flamingo templates Sub-task Open Unassigned
          11.
          Stop using Prototype.js and Scriptaculous in App Within Minutes Sub-task Open Unassigned
          12.
          Stop using Prototype.js in the annotation UI Sub-task Open Unassigned
          13.
          Stop using Prototype.js in the attachment selector Sub-task Open Unassigned
          14.
          Stop using Prototype.js in the wiki creation UI Sub-task Open Unassigned
          15.
          Stop using Prototype.js in the deleted documents and attachments pages Sub-task Open Unassigned
          16.
          Stop using Prototype.js in the user profile Sub-task Open Unassigned
          17.
          Stop using Prototype.js in the tour step editor Sub-task Open Unassigned
          18.
          Stop using Prototype.js in the realtime loader Sub-task Open Unassigned
          19.
          Stop using Prototype.js in the message sender macro Sub-task Open Unassigned
          20.
          Stop using Prototype.js in the extension repository skin extension Sub-task Open Unassigned
          21.
          Stop using Prototype.js in the filter streams UI Sub-task Open Unassigned
          22.
          Stop using Prototype.js in the syntax help Sub-task Open Unassigned
          23.
          Stop using Prototype.js in the entity name validation administration Sub-task Open Unassigned
          24.
          Stop using Prototype.js in the authentication administration Sub-task Open Unassigned
          25.
          Stop using Prototype.js in the notifications watch button Sub-task Open Unassigned
          26.
          Remove the deprecated aliases of compatibility.js Sub-task Open Unassigned
          27.
          Stop loading Prototype.js and Scriptaculous on every page Sub-task Open Unassigned
          28.
          Migrate livevalidation_prototype.js to RequireJS Sub-task Open Unassigned

          Activity

            People

              mleduc Manuel Leduc
              mleduc Manuel Leduc
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: