Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 14 years ago

#1891 closed enhancement (fixed)

minify/compress BP javascript

Reported by: djpaul's profile DJPaul Owned by:
Milestone: 1.5 Priority: minor
Severity: Version:
Component: Keywords: javascript
Cc:

Description

We should minify (or compress in some way) the default theme javascript, as there's quite a lot of it. We can package a uncompressed .dev.js version with the theme for developers to be able to read/load from (use the WordPress SCRIPT_DEBUG constant for this).

Change History (4)

#1 @r-a-y
15 years ago

Great idea, DJPaul!

I was worried about the pre-bundled JS scripts in global.js (#1673) that I didn't think about minifying the whole thing!

I'd say this is more of an enhancement than a defect though.

#2 @johnjamesjacoby
15 years ago

  • Type changed from defect to enhancement

It should follow suit of how WordPress does it with debug constants.

Same could go for the default theme CSS as well.

I like it.

#3 @djpaul
14 years ago

(In [3476]) Prepare core js/css for minify. See #1891

#4 @djpaul
14 years ago

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

(In [3477]) Minify core js/css. Set SCRIPT_DEBUG to load the dev versions. Fixes #1891

Note: See TracTickets for help on using tickets.