I'm curious about how my jQuery code affects the browser when adding and removing multiple style classes. Will the browser re-render with each line of javascript code? Take this example:
$(this).addClass('text1-hidden');
$(this).removeClass('text-2-hidden');
$(this).addClass('text3-shown');
$(this).removeClass('text-4-shown');
At what point does the browser decide to re-draw things?