I have an upload page on my site where a user will need to upload files for a large number of records (100+), and am using Uploadify v3 to initialize the upload buttons for each record, using this:
$(".uploadPDF").each(function(){                            
    var eid = $(this).attr('data-eid');
    $(this).uploadify({
        'swf' : '/assets/js/uploadify/uploadify.swf',
        'uploader' : '/fileops/upload_file',
        'buttonText' : 'Select file',
        'auto' : true,
        'formData' : {
            'eid':eid
                },
        'onUploadSuccess' : function(file, data, response) {
        }   
    });
}); //end each
However, this function takes ~20 seconds per 100 entries to initialize. Using Firebug, it seems that the biggest culprit is the call to uploadify.swf.
Is there a way to take care of this and speed it up? Or should I just not be initializing that many instances at once? If so, what would be a way around this?
Thanks!
