Make WordPress Core

Opened 13 years ago

Closed 10 years ago

#19065 closed defect (bug) (maybelater)

Please provide original javascript files (.dev.js) for all minified files

Reported by: rhertzog's profile rhertzog Owned by: nacin's profile nacin
Milestone: Priority: normal
Severity: blocker Version:
Component: External Libraries Keywords:
Focuses: Cc:


Please provide original javascript files (.dev.js) for all minified files. This is not only useful for debugging, it's also a requirement of some free software distributions like Debian (cf the bug report that prompted all this:

Missing files that I noted are (relative to wp-includes/js):

jquery/ui/*.dev.js (all *.js files are minified)
plupload/plupload.*.dev.js (all plupload.*.js files are minified)
tinymce/plugins/*/ (all plugins except the WP ones)

I'm not really sure about swfupload/swfupload-all.js, if it's swfupload.js + the 4 plugins minified, then it's ok I guess. But it would be nice to have it documented.

tinymce/ is probably also generated from something else but I could not figure out what. It would be nice to document how and when to regenerate it.

I can help to dig out the required files if it helps. Ideally the build process of wordpress would include a way to regenerate automatically the minified files from the corresponding .dev.js file.

Change History (12)

#1 @scribu
13 years ago

  • Cc scribu added

#2 @dd32
13 years ago

All of the listed files are external packages, and should be in all cases unmodified from the originals (Note: the jQuery version included is the .noConflict version). Due to their uncompressed size, WordPress doesn't include them in the core distro as most users will never require them, however, due to their unmodified condition, replacing with an uncompressed version for debugging is still possible.

There's a listing on of the external packages in use and links to their uncompressed source, That might not yet be up to date with WordPress 3.3 yet however.

Previous tickets related: #16517 and #16896

#3 @rhertzog
13 years ago

Thanks for the helpful answer!

wordpress is already more than 10Mb and I'm not sure including them would make such a big difference but I can understand your concern and would then suggest to still include them in the SVN but to add some way to build two release tarballs: a light version and full version. As I said providing the .dev.js in the source tarball is a requirement for Debian and I would like a solution that doesn't involve me recreating a dedicated source tarball for each release...

Now checking out the /download/source/ link, it lacks the pointer or the file for the crop/cropper.js file. I tried to look up the upstream website and I was unable to find the uncompressed file for the release embedded in Wordpress. It's a relatively old version that Wordpress ships I think.

plupload is also not mentionned in that page but maybe this one is a new library for 3.3.

jquery.schedule.js is less than 3kb, it could be included I guess.

The uncompressed copy of jquery is also not up-to-date, it's version 1.4.4 instead of 1.6.1 shipped in Wordpress 3.2.1.

Same for jquery-ui, it's 1.8.9 instead of 1.8.12 shipped in 3.2.1.

So while this webpage is useful, we don't have the historical versions used for each release. This can be useful at times (and important to be able to fulfill the obligation of the written offer that Wordpress makes at the end of COPYING, cf, so managing all this in subversion would be more effective IMO.

#4 @rhertzog
13 years ago

BTW just noticed that the webpage also lacks the original file for swfobject.js.

#5 @nacin
13 years ago

  • Milestone changed from Awaiting Review to
  • Owner set to nacin
  • Status changed from new to reviewing

Thanks for the report — I am doing an audit of all of this. Some things need to be added or updated on /download/source/, and we will maintain historical versions from the time that page (and the written offer) was created.

Plupload is new to 3.3.

I wouldn't mind including these in the release package but I bet they will all add quite a bit overall to the final download size. Unzipped, it is 10 MB, but zipped, it is significantly smaller, and we do try to download, unzip, and copy over in one go for the core UI updater.

#6 @rhertzog
12 years ago

Any progress? 3.3 has been released and the page has not been updated.

plupload sources are to be downloaded from github:
If you take the file you get the non-minified javascript files and the sources for the flash/silverlight stuff.

#7 @rhertzog
12 years ago

With WP 3.3, jquery/ is not needed in fact since jquery/jquery.serialize-object.js is not minified and is very small.

For jquery/, I was unable to grab the file from the official website but I found a copy of the non-minified file here (version 2.1.7 currently):

#8 @hakre
12 years ago


#9 @nacin
12 years ago

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

#10 @rhertzog
12 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

Thank you Nacin for this painful administrative work. But it looks like you missed some files. I can't find the sources for:

  • wp-includes/js/tinymce/tiny_mce_popup.js
  • wp-includes/js/tinymce/wp-tinymce.js.gz
  • wp-includes/js/crop/cropper.js

If you could also fix those, it would be great!

Concerning Croppper-UI my researches led to this:
But the minified file has been patched in changeset 4768 so it's really its own source right now. :-|

Version 0, edited 12 years ago by rhertzog (next)

#11 @DrewAPicture
10 years ago

  • Component changed from General to External Libraries

#12 @lucasantonio51
10 years ago

  • Resolution set to maybelater
  • Severity changed from normal to blocker
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.