. . "Whether you loop over all your elements at the beginning and attach the event handler, or you attach it to the document, is a question of where do you want to spend the most time." . .