I was researching on optimizing website performance and load speed and found an interesting hint. While this is not related to the WSOD bug, it may be useful for njs7227 and everyone else using CDN.
First, if you map your CDN service or S3 bucket to your subdomain you will have redirects.
Second, browsers will prefetch DNS only for your subdomain, not the actual location of a file. You will have non-prefetched DNS lookups, it can significantly decrease load speed, especially if you have many files linked to CDN.
The solution:
Let's say you have files.domain.com.s3.amazonaws.com
mapped to files.domain.com
. In your HTML add this tag to your HEAD section right after the charset definition:
<link rel="dns-prefetch" href="//files.domain.com.s3.amazonaws.com">
This will tell browser to prefetch DNS lookup of this domain address, and when the actual request and redirect is made, the DNS lookup part will be skipped (it's already prefetched) making it respond faster.
Tested, it really helps.
I'm not sure yet how Amazon serves this subdomain internally, right now testing if adding one more prefetch link for s3.amazonaws.com
will make it even faster.