Skip to content
Snippets Groups Projects
Select Git revision
  • 7.x-1.2
  • 3.x default
  • 7.x-1.x
  • 8.x-2.x
  • 8.x-1.x
  • master
  • 7.x-1.11
  • 3.0.3
  • 3.0.2
  • 7.x-1.10
  • 3.0.1
  • 3.0.0
  • 8.x-2.2
  • 8.x-2.1
  • 7.x-1.9
  • 8.x-2.0
  • 8.x-1.9
  • 8.x-1.8
  • 7.x-1.8
  • 8.x-1.7
  • 7.x-1.7
  • 8.x-1.6
  • 7.x-1.6
  • 7.x-1.5
  • 8.x-1.5
  • 8.x-1.4
26 results

minifyjs

  • Clone with SSH
  • Clone with HTTPS
  • Scott Joudry's avatar
    Issue #2893024 by slydevil: Suppress warning when scanning for files returns no errors
    Scott Joudry authored
    b840b7ec
    History
    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.