Jump to content

Speed up site through Subdomains


Recommended Posts

I've done a few searches and a dozen websites just copied the same text and images from 1 original source, but gives no real info on how to do this.   I copied the section I have questions about.

 

 

. Create sub-domains for Javascript files and CSS files

  1. Create a sub-domain js1.mystore.com and ask your hosting provider to direct it to /js/
  2. Create a sub-domain js2.mystore.com and ask your hosting provider to direct it to /theme/mytheme/js/
  3. Create a sub-domain css1.mystore.com and ask your hosting provider to direct it to /css/
  4. Create a sub-domain css2.mystore.com and ask your hosting provider to direct it to /theme/mytheme/css/

These 4 sub-domains will allow your visitors to load more files at the same time. Basically, a web-browser is limited to 8 parallel downloads. Each sub-domain is adding 8 new parallel downloads, so the total would be 40 (Main domain + 4 sub-domains).

 

 

Ask hosting provider to direct it to...

 

Why?  What goes in the subdomain?  Shouldn't the files go in the subdomain and then the old folder redirect to the subdomain for the files?   

 

If it's correct, how do I get the subdomains into the customers browser to call the files in the old folders.

 

Can htaccess redirect work instead of asking the hosting company.

 

Thanks, sorry if I'm asking a stupid question, but it just doesn't seem like enough info to move me a step closer to a faster website.

Edited by kashyyyk (see edit history)
Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...