Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#21661 closed enhancement (fixed)

Move unused JavaScript libraries to external sources

Reported by: scribu Owned by: nacin
Milestone: 3.5 Priority: normal
Severity: normal Version:
Component: External Libraries Keywords: has-patch
Focuses: Cc:

Description (last modified by scribu)

From IRC chat:

helenyhou: can we drop any bundled libraries that aren't actually being used in core? i assume they'd have to point to something external to account for enqueue calls.

nacin: helenyhou: I think it's probably time to do that to prototype and scriptaculous.

Attachments (1)

21661.diff (3.5 KB) - added by helenyhou 3 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 @scribu3 years ago

  • Description modified (diff)

@helenyhou3 years ago

comment:2 @helenyhou3 years ago

  • Component changed from General to External Libraries
  • Keywords has-patch added; needs-patch removed

21661.diff Yay protocol-relative URLs. Do we care that Prototype and Scriptaculous are not current versions?

comment:3 @scribu3 years ago

If we cared, we'd have updated them to current versions, no? :)

comment:4 @nacin3 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In [21593]:

Remove Prototype and script.aculo.us from core.

Continue to register them, pulling from ajax.googleapis.com. This is only being done for backwards compatibility;
libraries in use will continue to be local sources.

In the process, update to the latest versions of Prototype (1.7.1, June 5) and script.aculo.us (1.9.0, from 2010).

props helenyhou.
fixes #21661, #16664, #16665.

Note: See TracTickets for help on using tickets.