Detach Elements When Doing Heavy Manipulations
http://flippinawesome.org/2013/11/25/writing-better-jquery-code/
Wrap everything in a single element when doing any kind of DOM insertion
http://dumitruglavan.com/jquery-performance-tips-cheat-sheet/ tip 9