chriscoyier/Relevant-Dropdowns — Issue #5: DOM append element/reflow
Author: rwldrn
Created: 2011-12-07 22:15:28+00:00
State: open

This block will cause reflows in a loop: https://github.com/chriscoyier/Relevant-Dropdowns/blob/master/js/jquery.relevant-dropdown.js#L36-45

Recommend appending to a detached node then swapping the contents when complete for for a single DOM operation vs. one for each iteration.

I'm willing to submit a patch.