Download link for async.min.js broken
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
Are there any plans to fix this, or at least a workaround to get access to the minified file?
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
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...
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.
-
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.
-
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.json 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?
+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 great, works for me, 17.6K
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 : 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 [email protected] 收件人:caolan/async [email protected] 主题:Re: [async] Download link for async.min.js broken (#233) 日期:2014年09月04日 14点46分
@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 This isn't the best forum for your questions. I would recommend looking up some basic Node tutorials.