Ticket #6 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 months ago

JavaScript merging

Reported by: rambo Assigned to: rambo
Priority: major Milestone: 1.8 Thor
Component: MidCOM component Version:
Keywords: Cc: w_i

Description

Merge JavaScript? files added via $_MIDCOM calls to single file and add reference to the merged file in stead (to the HTML headers).

Should also do whitespace removal and other automagick optimizations when possible.

Change History

06/02/07 12:47:35 changed by rambo

  • milestone set to MidCOM 2.8.

06/02/07 12:56:39 changed by jerry@nemein.com

It should also handle ACLs and other things that might restrict the user from the featurea that need the javascript files. Loading must also be possible to force, ie. if user needs the classes for something else.

We need a class for this which can be called to * load plugins * encrypt javascript file * merge files as one * (cache the merged file / per page)

06/02/07 13:01:46 changed by rambo

  • owner changed from tarjei to rambo.

06/02/07 13:33:26 changed by w_i

  • cc set to w_i.

06/03/07 17:55:41 changed by rambo

  • status changed from new to closed.
  • resolution set to wontfix.

Two really big problems: 1. JS files might include other files, using JS variables as parts in the path, we cannot rewrite those unless we have fairly feature complete JS parser/runner. 2. $_MIDCOM->add_jsfile and $_MIDCOM->add_jscall ordering, this is solvable but I'm afraid the one above one isn't.

OTOH the phing package script could call some JS "optimizer" before adding the file to the pear package.

09/08/07 14:44:16 changed by w_i

  • status changed from closed to reopened.
  • resolution deleted.

Added possibility in phing to pack javascript files.

09/08/07 14:46:47 changed by w_i

  • status changed from reopened to closed.
  • resolution set to fixed.

09/15/07 12:41:09 changed by w_i

  • status changed from closed to reopened.
  • resolution deleted.

Need to add this feature to phing component packing phase

09/15/07 12:41:17 changed by w_i

  • status changed from reopened to closed.
  • resolution set to fixed.

(In [12302]) Bulletproofing to javascript packing. Added unpacking. Added packer to component packing task. Closes #6

09/15/07 12:44:17 changed by w_i

Now when packing components, Phing packs all javascript files and renames the source files to .src.js -files.

After Packing the component Phing unpacks the javascripts by renaming the packed file to .pack.js and renaming the .src.js file to original file.

09/30/08 15:15:43 changed by bergie

  • milestone changed from MidCOM 2.8 to 1.8 Thor.