I am trying to empty an HTML table that has about 200 rows using $("#mytable").empty()
. While it is emptying the rows, I cannot do anything else, looks like the UI is blocked.
Is this the right function to use? Can this operation be done in the background, in order to minimize the noticeable lag?