More user agent and loading priority fixes