Is it possible to load resource from an online source?

Just curious, could have a few applications.

I basically tested in a css file and it didn’t worked. The test was as simple as
background: url(‘www.random_site.com/random_image.png’);
and was expected that it would load the image from that source.