Download link for async.min.js broken #233

Closed
kohlmannj opened this Issue Feb 8, 2013 · 11 comments

Projects

None yet
@kohlmannj

Hey, easy problem to fix: the link to the minified version of Async.js is 404 right now:

https://github.com/caolan/async/raw/master/dist/async.min.js

Thanks,
Joe

@serhalp
serhalp commented Feb 20, 2013

Are there any plans to fix this, or at least a workaround to get access to the minified file?

@brianmaissy
Contributor

Until @caolan gets back to us on what the 'official' minified version is, here's one I created at jscompress.com from the current version ( https://github.com/caolan/async/blob/1fecb21940135b2ff647a93d1fc83df03b363714/lib/async.js ): http://pastebin.com/zvS6tDnm. It's 10k instead of 24k

@caolan
Owner
caolan commented Mar 2, 2013

I doubt many people are using the minified version directly, rather depending on their own build tools. Also, I kept forgetting to update it ;) - I recommend we remove it from the README. If it turns out lots of people want to keep it then I'll reinstate it...

@piercemoore

Hey guys! I am glad I found this issue, as I've been kind of "on the hunt" for a minified version of Async. Just a few things.

  1. Async is awesome. I love it, and I use it literally every day in literally every single project that I touch. It's a masterpiece, and I'm an unapologetic fanboy.

  2. Having an official minified version would really help me out, as I am sure it would help many others. I don't feel comfortable minifying lib/async.js on my own because there's no way for me to know afterwards whether the tests are still passing without setting up and running the unit test suite myself. As I am sure it would be relatively simple to keep a minified version up, it seems a "cheap" win with prospective incoming Async users that would make us feel warm and fuzzy inside :)

What are your thoughts? Is there anything I can do to help make this a thing?

@caolan caolan closed this Mar 28, 2014
@pkallos
pkallos commented May 20, 2014

+1 for this plurse!

Official minified is useful in the following case:

  • I have a small project I want to stuff this minified file into.
  • Don't have git/node/uglify/etc.. installed.
  • I don't want to clone repo/build/minify/copy into repo.

Just a nice-to-have official minified that is presumably tested and used by others.

In the meantime here's a oneliner assuming you have uglifyjs somewhere

wget -q -O - "https://raw.githubusercontent.com/caolan/async/master/lib/async.js" | uglifyjs > async.min.js
@fritx
Contributor
fritx commented May 21, 2014

@pkallos great, works for me, 17.6K

@g4321
g4321 commented Sep 4, 2014

Hi guys,

I am new in using async.js.
can anyone tell me how can we call javascript function asynchronous using this js file.
how can i use this async.js.
Many Thanks!

@albert361

@g4321 :
If you're using node.js.
you should require async first after installing async by npm.

var async = require('async');

then you can call multiple methods in parallel or series.

async.parallel([
    function(){ ... },
    function(){ ... }
], callback);
async.series([
    function(){ ... },
    function(){ ... }
]);
@banther
banther commented Sep 4, 2014

我用过这个方法
----- 原始邮件 -----
发件人:albert361 notifications@github.com
收件人:caolan/async async@noreply.github.com
主题:Re: [async] Download link for async.min.js broken (#233)
日期:2014年09月04日 14点46分

@g4321
g4321 commented Sep 4, 2014

@albert361
Thank you very much for responding me.

i installed node.js successfully but i am not getting proper way. how will execute this process step by step using async.js.
could you please provide me some instruction step by step so that i can execute these javascript methods asynchronously.

awaiting your response.

@aearly
Collaborator
aearly commented Sep 4, 2014

@g4321 This isn't the best forum for your questions. I would recommend looking up some basic Node tutorials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment