I am implementing the LDA algorithm of Topic Modelling in javascript as a part of a project. Upon the click of a button, the function to perform LDA is called. However since this is a very heavy task, the browser used to hang for around 15 seconds when the function was called (even the loading animated gif wasn't working while processing was taking place). algorithm of Topic Mo