resources should be loaded via protocol-relative url