Moved mesh generation to webworker.