update css & add 2 views of resource load before domload event