update CSS before rendering components (#1046)