WordPress.org

Make WordPress Core

Changeset 4566


Ignore:
Timestamp:
12/01/06 03:13:21 (7 years ago)
Author:
matt
Message:

Compress scripts using Dojo and link to the compressed versions, saving about 27kb total. Everything I tested still worked, except the colorpicker which is why it's not compressed.

Location:
trunk/wp-includes
Files:
5 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/script-loader.php

    r4510 r4566  
    1111 
    1212    function default_scripts() { 
    13         $this->add( 'dbx', '/wp-includes/js/dbx.js', false, '2.05' ); 
    14         $this->add( 'fat', '/wp-includes/js/fat.js', false, '1.0-RC1_3660' ); 
    15         $this->add( 'sack', '/wp-includes/js/tw-sack.js', false, '1.6.1' ); 
    16         $this->add( 'quicktags', '/wp-includes/js/quicktags.js', false, '3517' ); 
     13        $this->add( 'dbx', '/wp-includes/js/dbx.compressed.js', false, '2.05' ); 
     14        $this->add( 'fat', '/wp-includes/js/fat.compressed.js', false, '1.0-RC1_3660' ); 
     15        $this->add( 'sack', '/wp-includes/js/tw-sack.compressed.js', false, '1.6.1' ); 
     16        $this->add( 'quicktags', '/wp-includes/js/quicktags.compressed.js', false, '3517' ); 
    1717        $this->add( 'colorpicker', '/wp-includes/js/colorpicker.js', false, '3517' ); 
    1818        $this->add( 'tiny_mce', '/wp-includes/js/tinymce/tiny_mce_gzip.php', false, '20061113' ); 
    1919        $mce_config = apply_filters('tiny_mce_config_url', '/wp-includes/js/tinymce/tiny_mce_config.php'); 
    2020        $this->add( 'wp_tiny_mce', $mce_config, array('tiny_mce'), '20061113' ); 
    21         $this->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.5.0'); 
     21        $this->add( 'prototype', '/wp-includes/js/prototype.compressed.js', false, '1.5.0'); 
    2222        $this->add( 'autosave', '/wp-includes/js/autosave.js.php', array('prototype', 'sack'), '4508'); 
    2323        $this->add( 'wp-ajax', '/wp-includes/js/wp-ajax-js.php', array('prototype'), '4459'); 
Note: See TracChangeset for help on using the changeset viewer.