Javascript How To Remove Empty Space In Header During Loading State

Javascript How To Remove Empty Space In Header During Loading State