• My site uses many images. Although the site speed is great (less than 2 seconds) when I run a speed test I was recommended to parallelize downloads across hostnames. If I understood correctly, this is done through a subdomain but how exactly? Once I create a subdomain what do I do next? I couldn’t find an up-to-date plugin for this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Same here aswell, following this topic to find solution.

    Thread Starter Dan14

    (@dan14)

    Hi VUBB, I think the solution is to create a CNAME subdomain and modify the default path url of the upload of your theme. However, this is great if you just started and did not upload anything. If you have, you need to add an instruction in SQL and possibly redirect the indexed images via .htaccess. My concern is the SQL as it is irreversible if I understood correctly. Although a new instruction can be added this could totally mess your site.

    If you don’t have SSL use a free CDN. If you are like me with SSL the CDN is not free anymore and I risk a round trip (I think that’s what it’s called. I am not tech so I won’t be able to answer any questions. I hope someone with the tech knowledge can help. If I helped you, good luck with the website.

    If you’ve got access to your .htaccess file, pseudo-subdomains can easily solve this problem for you. Using a bit of PHP and some .htaccess mod_rewrites, you can easily redirect absolutely anything you want to your images directory. Using this logic, you can set some scripts up to automatically parallelize images, js, etc. for you, dynamically. For example, every X references to images, js, etc. it will automatically switch to another domain. Or, every Y kilobytes. However you want your website(s) to automatically switch to an unlimited number of subdomains.

    I’ve created an example of this structure, and you can even generate your own URL on my website, allowing the absolute easiest solution to parallelization without coding or mod_rewrites. Feel free to take a look.

    https://myl.io

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Parallelize downloads across hostnames’ is closed to new replies.