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
- depends on
-
XWIKI-22596 Migrate livevalidation_prototype.js to RequireJS
-
- Open
-
-
XWIKI-26256 Replace the remaining live tables with Live Data
-
- Open
-
- relates to
-
XWIKI-25157 Limit Prototype.js usage
-
- Closed
-