Using a web worker would release the UI thead. http://developerblog.redhat.com/2014/05/20/communicating-large-objects-with-web-workers-in-javascript/