Use document fragment to add all dependencies with one DOM call only.
Attach a file by drag & drop or click to upload