• dear admin:

    is it necessary to server image and css in subdomain,

    so people say it will make wordpress faster, I am not sure does it work with this plugin or will cause any problem?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    is it necessary to server image and css in subdomain,
    so people say it will make wordpress faster, I am not sure does it work with this plugin or will cause any problem?

    – What!? Why!? LOL! No no, don’t do it. It makes absolutely no sense. Now with HTTP/3 and improvements in PHP 8+ and WordPress. You really don’t have to do any of these crazy things. Use a normal WordPress setup.

    Thread Starter kloallan

    (@kloallan)

    Hi Saumya, Thanks for your reply

    but in the post, you can see they say:
    https://stackoverflow.com/questions/913208/pros-and-cons-of-a-separate-image-server-e-g-images-mydomain-com

    with a different domain, not send the cookies data with every request. This can increase performance.

    Pro:
    
    Many browsers will only allocate two sockets to downloading assets from a single host. So if index.html is downloaded from www.domain.com and it references 6 image files, 3 javascript files, and 3 CSS files (all on www.domain.com), the browser will download them 2 at a time, with the other blocking until a socket is free.
    
    If you pull the 6 image files off onto a separate host, say images.domain.com, you get an extra two sockets dedicated to download your images. This parallelizes the asset download process so, in theory, your page could render twice as fast.

    ___________________________

    in your opinion, does it make sense?

    Plugin Contributor iSaumya

    (@isaumya)

    Yes it does but this was a thing of the ancient internet of back in 2007-2009 when the internet protocol was HTTP/1.1. It is no longer the case at present. Now we have HTTP/2 and HTTP/3. Now static files do not have cookies at the domain level. Neither you need to worry about tunneling and available TCP pools. Since HTTP/2 it is recommended to send multiple files instead of one large file like old concatenated CSS/JS or image sprites. As it improves the performance due to the fact that under the hood the protocols have totally changed. Now there is not only a parallel connection but even using UDP for tunneling. Technology has improved a lot in past 13 years. In this world, 13 years back means the age of dinosaurs.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘is it necessary to server image and css in subdomain’ is closed to new replies.