Fix so a slow javascript load doesnt cause animation of elements