Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#8793 closed enhancement (wontfix)

Include packed / minimized versions of prototype.js & wp-scriptalicious.js

Reported by: mrdavidlaing's profile mrdavidlaing Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords: 2nd-opinion
Focuses: Cc:

Description

In a standard WP2.7 install, the page weight of an admin page is quite heavy (+- 750kb)

How about including the packed / minimized versions of prototype.js & wp-scriptalicious.js?

This could save approx 100kb.

Change History (6)

#1 @DD32
16 years ago

How about people just stop using those stupid js's and use jQuery ;)

Or for that matter, Only queuing those JS's on the pages that need it.. (which is none of Core WP, only plugins which choose to use it still)

...On a more serious note, See also: #8629 & [10291] (Whilst that commit doesn't touch the JS mentioned here..)

#2 @azaozz
16 years ago

Unfortunately Prototype and Scriptaculous don't have official minified versions, there are a few "packed" versions around although they load slower than the minified (a lot of overhead in the browser).

Since minifying/packing can break them, think we will need some feedback from people that use them about which are the best/safest.

#3 @mrdavidlaing
16 years ago

Perhaps switching them off should become an setting in wp-config.php?

#4 @ryan
16 years ago

WP doesn't load them by default so they are switched off unless a plugin explicitly requests that they be loaded.

#6 @ryan
16 years ago

  • Milestone 2.8 deleted
  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.