I have written a script when clicked it creates a zip archive of files from the server and start downloading. Till this point everything is fine but what annoys is that it freezes the browser whether it be Chrome, Mozilla or IE. I assume this is due to overheard of creating a zip file and then downloading that altogether. This is on a dedicated server with 32 Gigs of RAM so I wonder is this really an issue with server. What is the alternate way of downloading the file smartly. Here is the link for demo.
[deleted - no longer valid]
Looking for suggestions.