You are here

README.txt in Minify JS 7

Same filename and directory in other branches
  1. 8.2 README.txt
  2. 8 README.txt
Description
===============================================================================

Minify JS was developed to replace the implementation of the Minify module
(https://www.drupal.org/project/minify) which has a couple of problems:

  1. Problem: It is not storing the minified versions of it's files in the
     public file system properly. This in turn will not allow other modules,
     such as the S3 File System module (https://www.drupal.org/project/s3fs),
     to work with it.

     Solution: This module uses the public file system exclusively and any
     module that uses it's own Stream Wrapper for the public file system will
     work with this module out of the box.

  2. Problem: The minification process is using a remote call to Closure
     Compiler which has a few limitations, specifically a limitation on the
     number of files it can minify in an hour and another preventing it from
     minifying the JS to a single line.

     Solution: This module uses the JSqueeze PHP class for it's minification
     (https://github.com/tchwork/jsqueeze) which does not have these
     limitations.

  3. Problem: The module only detected javascript files that were loaded on a
     page, which means that all pages would need to be visited to get a
     complete list of javascript files.

     Solution: This module scans the file directory for .js files (excluding
     .min.js files).

Installation
===============================================================================

  1. Place the entire minifyjs/ folder into sites/all/modules/ directory.

  2. Enable the Minify JS module.

  3. Go to the Performance page: Configuration > Performance.

  4. Click on the Manage Javascript Files tab.

  5. Bulk minify using the checkboxes or use the Operation links for individual
     minifications.

File

README.txt
View source
  1. Description
  2. ===============================================================================
  3. Minify JS was developed to replace the implementation of the Minify module
  4. (https://www.drupal.org/project/minify) which has a couple of problems:
  5. 1. Problem: It is not storing the minified versions of it's files in the
  6. public file system properly. This in turn will not allow other modules,
  7. such as the S3 File System module (https://www.drupal.org/project/s3fs),
  8. to work with it.
  9. Solution: This module uses the public file system exclusively and any
  10. module that uses it's own Stream Wrapper for the public file system will
  11. work with this module out of the box.
  12. 2. Problem: The minification process is using a remote call to Closure
  13. Compiler which has a few limitations, specifically a limitation on the
  14. number of files it can minify in an hour and another preventing it from
  15. minifying the JS to a single line.
  16. Solution: This module uses the JSqueeze PHP class for it's minification
  17. (https://github.com/tchwork/jsqueeze) which does not have these
  18. limitations.
  19. 3. Problem: The module only detected javascript files that were loaded on a
  20. page, which means that all pages would need to be visited to get a
  21. complete list of javascript files.
  22. Solution: This module scans the file directory for .js files (excluding
  23. .min.js files).
  24. Installation
  25. ===============================================================================
  26. 1. Place the entire minifyjs/ folder into sites/all/modules/ directory.
  27. 2. Enable the Minify JS module.
  28. 3. Go to the Performance page: Configuration > Performance.
  29. 4. Click on the Manage Javascript Files tab.
  30. 5. Bulk minify using the checkboxes or use the Operation links for individual
  31. minifications.