I'm working on a web-application that loads a couple of small gif images onto the screen. I'm using a relative path, which means they are loaded from the same web server that serves the php page. The operation is instantaneous, and I'm on a different continent than the web server.
I just tested a CDN network for this (Cloudfront), thinking that moving static files closer to the user is a great idea. However, all of these files now take a half second or so to be rendered on the screen. I now have to use a absolute path, of course (https://xyzvf.cloufront.net/images/)
Why is that? Is the absolute path a problem? I'm reducing the HTTP requests to my own server which is a good thing, but that delay is annoying. Isn't CDN suited for this?