vkThread plugin helps to developer easily export any function of the code in a separate thread, as well as open multiple threads parallel computing. To create a Promise / Deferred object, I used the library “when ()”.
However, I noticed that people are reluctant to use unfamiliar libraries and not trust them . So I replaced when () on jQuery. That is, if you are working with jQuery, additional libraries are no longer needed .
I recall that Promise- Library is not mandatory and only need to provide multithreading . To export one function , no additional libraries do not need .
Documentation and examples : http://www.eslinstructor.net/vkthread/