BHV-6579: (re)moving unnecessary DOM changes from rendered functions