only remove component CSS after all component nodes have been removed from the DOM, integrate CSS changes into runloop for better performance