load resources via protocol-relative url, fix #3349