Moves non-animation styles inline and adds setTimeout check for script loading