Jump to content

How to use subdomains for CSS and JS?


Recommended Posts

Hi.

 

I just searched for tips of how to speed up PS website and i got to one tip that i didn't really get. I setup 4 subdomains - 2 for JS files and 2 for CSS. JS files located under the main directory and under the main directory of the theme used. Same happens with CSS files. After i setup each subdomain to its own location i didn't see how to activate it, or if there is anything else should be setup.

 

Any idea?

 

* See the article here. (task #5)

Link to comment
Share on other sites

Isn't it better to have multiple subdomains that processing together while loading page? I mean, by what i was reading (not much) on the article i provided (see link) it seems to be very powerful.

 

Your article is also very good, but it seems to just separate the content to 2 parts while the other one to 5.

Link to comment
Share on other sites

Well, you have to weight two things, concurrent downloads against cookieless content. I prefer to go the cookies less route and combine files. Connections take time, so I try to combine every file that I can, then I try to serve it from a cookieless domain, I think that is going to get more speed than parallel downloads. One the sites I optimize, there is always only one css file. There is only maybe 2 js files. You have to combine everything that you can can. I have a couple of good articles on combining things on my site, if you follow the optimizing prestashop article, that site got a 97 in google page speed.

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...