Check head before loading CSS file