load resources via protocol-relative url, fix #3349
Merge pull request #3350 from PeterDaveHello/patch-1

load resources via protocol-relative url, fix #3349