1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Optimizing load speed by using multiple domains for images

Discussion in 'White Hat SEO' started by CaptainCapslock, Aug 11, 2012.

  1. CaptainCapslock

    CaptainCapslock Newbie

    Joined:
    Jul 26, 2012
    Messages:
    4
    Likes Received:
    0
    Hi,

    I would like to optimize my site's load speed by loading the images from multiple domains. Will Google lower the page rank of the images because of duplicate content?

    That would be a bit of a problem for me, because a lot of the visits come in via Google Images.

    Cheers!
     
  2. puneetas3

    puneetas3 Senior Member

    Joined:
    Jan 8, 2012
    Messages:
    876
    Likes Received:
    384
    Why don't you use subdomains of your main domain. No PR loss. I use 4 subdomains of the main domain to serve images. You can call it as a form of CDN. Increases page speed very well. If your site is based on WP, then you can use W3 Total cache to setup subdomains. You just create one master subdomain and a lot of symlinks to it through another subdomains (like in my case I use 3 subdomains symlinked to master subdomain). So, it serves the purpose very well.
     
    • Thanks Thanks x 2
  3. Zapdos

    Zapdos Power Member

    Joined:
    Oct 22, 2011
    Messages:
    597
    Likes Received:
    708
    Location:
    Eastern North Carolina
    Dont use multiple domains. Each domain (including subdomain) requires its own lookup increasing overhead. Use one domain to serve images, javascript, css and static files. Using images and static files like that will not decrease ranking. Infact google recommends it along with yahoo and bing. Just be sure to setup proper caching and compression headers.
     
  4. Joker7

    Joker7 Regular Member

    Joined:
    Aug 9, 2012
    Messages:
    220
    Likes Received:
    39
    All you gotta do is resize your images to a small size in paint and reupload them onto your wordpress site. It will increase your site's speed and you can always size them bigger in the html of your post, but upload them as small sizes.
     
  5. Zapdos

    Zapdos Power Member

    Joined:
    Oct 22, 2011
    Messages:
    597
    Likes Received:
    708
    Location:
    Eastern North Carolina
    I hope you're not serious...

    1) Paint has a horrible jpeg compression algorithm
    2) Making a raster image smaller is permanent
    3) Resizing on the browser will cause even more distortion and artefacts.
     
  6. kingtrojan

    kingtrojan Junior Member

    Joined:
    Feb 28, 2008
    Messages:
    175
    Likes Received:
    167
    Occupation:
    Software Engineer
    Location:
    127.0.0.1
    MaxCDN is offering 1 year free account ( worth $72 ) for the month of August . I have been using it since yesterday , it truly boost your website speed .
     
  7. bz

    bz Hammerzeit Staff Member Premium Member

    Joined:
    Jun 10, 2010
    Messages:
    514
    Likes Received:
    3,083
    Occupation:
    Fixing everyone elses problems.
    Home Page:
    Cloudflare has a free service that works very well.
     
  8. Kimi

    Kimi BANNED BANNED

    Joined:
    Jan 21, 2008
    Messages:
    860
    Likes Received:
    2,472
    Use subdomains of your website like img1.website.com, img2.website.com, img3.website.com you got it. If you are on wordpress use W3TotalCache
     
  9. cloakme

    cloakme Regular Member Premium Member

    Joined:
    Nov 3, 2011
    Messages:
    473
    Likes Received:
    281
    I never thought of doing what you just said. I learn something new everyday. I pay a smug mug account that I have all my photos uploaded to to enhance load time.


     
  10. SnowWar

    SnowWar Power Member

    Joined:
    Mar 3, 2012
    Messages:
    595
    Likes Received:
    48
    Occupation:
    Pure student :p
    When you are using any method that is related to duplicate content.
    Then you must get your page rank lowered.
    In order to do everything properly you should also maintain the rules and regulations.
     
  11. puneetas3

    puneetas3 Senior Member

    Joined:
    Jan 8, 2012
    Messages:
    876
    Likes Received:
    384
    For every one concerned here with duplicate content, make sure you make your subdomain directories restricted to search engines, else they will crawl thousands of image links and show them in Search engine without any tag or description.
     
  12. puneetas3

    puneetas3 Senior Member

    Joined:
    Jan 8, 2012
    Messages:
    876
    Likes Received:
    384
    If your site is heavily based on media you can try creating more than 4 sub-domains that will fasten up load time very much. Google and Yahoo recommends to serve static content from subdomains or CDN especially. This is because browsers have a limitation of how many content they can download from one domain simultaneously. Therefore in case of large number of files, the page takes much time until its queeue is cleared to download next batch of content. CDN solve this very problem.

    Also check your site speed at gtmetrix.com before and after setting up your CDN to find the sweet spot for the number of subdomains you need to set to gain maximum benefit (excess subdomains will affect your site on other frontiers).

     
    Last edited: Aug 13, 2012
  13. CaptainCapslock

    CaptainCapslock Newbie

    Joined:
    Jul 26, 2012
    Messages:
    4
    Likes Received:
    0
    I did some tests on my server, but I can't post the results because this retarded site wants to make me pay $97, to make sure I'm not posting spam.

    Basically it turns out that it only got slower by adding more mirrors. Maybe it only works if you have a slightly slow shared server.

    Sample page was 73 thumbnails; 1.4mb
    On my local PC it went from 600ms (main domain) incrementally advancing to 3200ms in a straight line (up to 9 different domains - not subdomain of the main domain). I had some timeline screenshots, but can't show 'm apparently >.<

    Also tests on pingdom showed me similar results, but then ranging from 200ms to 600ms
     
  14. gabfire

    gabfire Newbie

    Joined:
    Aug 10, 2012
    Messages:
    26
    Likes Received:
    9
    Are you hosting on a VPS? Here's how we have all our dedi/VPS environments configured:

    - nginx on port 80/443 acting as a reverse proxy
    - nginx serves static content (js/css/images/html)
    - nginx reverse-proxies php and other dynamic content to apache

    You could replace apache with lighttpd in this scenario. You could also have your dynamic content on a different physical VPS/server as nginx, ensuring that the load is distributed.
     
  15. Stizerg

    Stizerg Power Member

    Joined:
    Oct 23, 2011
    Messages:
    611
    Likes Received:
    167
    for best results use proper CDN
    I use CDN served by Microsoft, it's fasted of what I've tested.
    From one account loading big pictures and from second account loading skin/css/js.
    As result, loading speed dropped from 8 seconds to 3.5 around the globe, not in one particular country.
    Using 2 subdomains (not CDN) I was able to reduce loading speed to 5 seconds.
     
  16. CaptainCapslock

    CaptainCapslock Newbie

    Joined:
    Jul 26, 2012
    Messages:
    4
    Likes Received:
    0
    I think CDN's are an option when one server doesn't cut it anymore. So, not really required for me yet.

    A question regarding people who say to use a subdomain: Others tell me it's important to use a different domain, not just a subdomain. The browser refuses to fire more than X requests at a domain. Is this true?
     
  17. Zapdos

    Zapdos Power Member

    Joined:
    Oct 22, 2011
    Messages:
    597
    Likes Received:
    708
    Location:
    Eastern North Carolina
    A subdomain is considered a different domain. Firefox by default allows for 2 or 4 threads (items loading) concurrently. You do not need to buy y.com for loading if you own x.com. Just may y.x.com (subdomain.) If you use too many domains for concurrent loading it will slow down like you experienced. Use at max 3 unless you know what you're doing and the consequences. I myself would recommend 1 or maybe 2 depending on content.


    If you want, you can PM me your site and I can take a look and see what the actual problem is.
     
    • Thanks Thanks x 1
  18. CaptainCapslock

    CaptainCapslock Newbie

    Joined:
    Jul 26, 2012
    Messages:
    4
    Likes Received:
    0
    Hah, I need 15 posts before I can PM. Maybe you can try to PM me your email/im info? Thanks very much by the way!
     
  19. Zapdos

    Zapdos Power Member

    Joined:
    Oct 22, 2011
    Messages:
    597
    Likes Received:
    708
    Location:
    Eastern North Carolina
    An update:

    The website is actually very optimized and load time is almost as low as it can go without trying to optimize network routes. Load times were reduced using multiple cdns (down from 9) and lazyloading for images was suggested. Those that don't know lazyloading only loads the content (in this case images) when it comes into viewport or optionally near viewport similar to googles image results.