async icon indicating copy to clipboard operation
async copied to clipboard

Download link for async.min.js broken

Open kohlmannj opened this issue 13 years ago • 11 comments

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

kohlmannj avatar Feb 08 '13 17:02 kohlmannj

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

serhalp avatar Feb 20 '13 18:02 serhalp

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

brianmaissy avatar Feb 20 '13 20:02 brianmaissy

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...

caolan avatar Mar 02 '13 21:03 caolan

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?

piercemoore avatar May 13 '13 21:05 piercemoore

+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

pkallos avatar May 20 '14 20:05 pkallos

@pkallos great, works for me, 17.6K

fritx avatar May 21 '14 09:05 fritx

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!

g4321 avatar Sep 04 '14 06:09 g4321

@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(){ ... }
]);

albert361 avatar Sep 04 '14 06:09 albert361

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

banther avatar Sep 04 '14 07:09 banther

@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.

g4321 avatar Sep 04 '14 11:09 g4321

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

aearly avatar Sep 04 '14 21:09 aearly