code: def minify(path):
      
  
      if 'http' in path:
          data = requests.get(path).content.decode(
              'ascii', errors='ignore')
      else:
          with open(path, 'rb') as f:
              # some of these assholes use unicode spaces -_-
              data = f.read().decode('ascii',
                                     errors='ignore')
      # don't re- minify
      if '.min.' in path:
          return data
  
      try:
          return jsmin.jsmin(data)
      except BaseException:
          return data
docs: Load a javascript file and minify.
  
      Parameters
      ------------
      path: str, path of resource