resourceloader: Use feature test instead of UA sniffing