ririzarry
Member
Posted 2 years ago #
I'm looking at the CDN support. Before enabling CDN support, I already load my images from an img subdomain. I'd prefer to keep this img subdomain clean and have a separate subdomain for jss and CSS content. Is this possible with the current functionality? I experimented with it a bit but it tried to overwrite my img subdomain URL with the one provided in the CDN settings.
Aside from creating additional DNS lookups, multiple subdomains doesn't necessarily improve pipelining in browsers in practice. No this isn't possible in the currently functionality. You will realize a much larger progressive render performance gain by using an actual CDN provider (low latency is a bigger win than over-doing the pipelinging).
ririzarry
Member
Posted 2 years ago #
Thanks so much for the feedback and the great plugin.
adampieniazek
Member
Posted 2 years ago #
Couldn't you just serve some of your big files directly from a second subdomain and let W3 auto-handle the rest?
For instance, over at Swagger Paris, we've set it up so that the background images for the header, sidebar, and footer all pull from img.swaggerparis and all the other static files pull from static.swaggerparis, handled by W3 (and both served from Max CDN).
Unless I'm missing something that gives the best of both worlds, right? Difference might be only a few milliseconds but with a 2 MB homepage load, each bit is worth it.
Unfortunately, I cannot simply agree. The reason why W3TC did not support multiple hostnames for CDN from the start is I did not want to perpetuate the notion that it was always a good idea. It's very easy to open so many connections for users that you saturate their internet connections or drive up their CPU usage.
Regardless, multiple host name support is was actually suggested to MaxCDN by me originally and also is in the next major release of W3TC.
If your total payload is 2MB, you probably have other optimizations that need to be made to your site to improve progressive render and pipelining as mentioned above has it's limits.