Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Oct 2010
    Posts
    157
    Thanks
    2
    Thanked 1 Time in 1 Post

    DNS requests myths

    Hi,
    well when its about SEO we hear about HTTP requests and DNS requests. As far as HTTP requests are concerned they are number of requests sent outside the site (external links) so if they are more in numbers it means that it will take more time to load the site. BUT that's where comes DNS into talk, i guess the number of requests of external files from different servers is DNS.

    E-g pics at flickr, picassa, javascript at code (google) and then some stuff on own server.
    Here DNS requests would be all these providers (flickr,picassa,code google, own hosting) so if they increase the page load time increases too.

    Now my questions are:
    1- Do DNS really effect?
    2- How to get to know which server is good for us and which one is bad?
    3- I have hosting in Host gator but still i host my javascript at code google as i think google will be faster than my hostgator hosting (again because of no knowledge to findout which one is fast)?
    4- Too many request from same DNS can make it slow, NOW HOW TO FIND OUT as which one is going to get slow and which one is not?
    5- What is the limit to number of requests from same DNS (how many links should be from one DNS)?
    Last edited by cryoffalcon; 03-29-2012 at 02:57 PM.

  • #2
    Regular Coder
    Join Date
    Oct 2010
    Posts
    157
    Thanks
    2
    Thanked 1 Time in 1 Post
    any reply would appreciated ^^

  • #3
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts
    Quote Originally Posted by cryoffalcon View Post
    well when its about SEO we hear about HTTP requests and DNS requests.
    SEO is search engine optimization. I think you are talking about load speed.

    Quote Originally Posted by cryoffalcon View Post
    As far as HTTP requests are concerned they are number of requests sent outside the site (external links)
    HTTP requests include files within the site, such as stylesheets and javascript files. Reducing HTTP requests from stylesheets and javascript files is a good way to increase load speed.
    http://www.sitepoint.com/faster-page...nd-javascript/

    Quote Originally Posted by cryoffalcon View Post
    BUT that's where comes DNS into talk, i guess the number of requests of external files from different servers is DNS.

    E-g pics at flickr, picassa, javascript at code (google) and then some stuff on own server.
    Here DNS requests would be all these providers (flickr,picassa,code google, own hosting) so if they increase the page load time increases too.
    Yes/No. I don't know what kind of website you are building but for large websites, you are not supposed to be leaching from their servers. Having to contact their servers and bring it back will take longer, it's best to host images in your own directory. This includes google jquery, with the license included in the file, it can be bundled in your own file. The only exception is if you are extracting something that realistically belongs on their site, such as a video from youtube.

    1. Yes.
    2. Like I said, it depends on what kind of website you are building. If you are asking this question, it probably doesn't matter.
    3. No, hosting it in your own file is faster, provided you have everything bundled.
    4. Grabbing from another website will always be the slowest.
    5. Depends on the website.

    In all honesty, what I'm trying to say is that if you are hosting with hostgator, keep your images on your own server. Bundle your css and javascript up, you only need one file for each. You can also maximize efficiency, there are free compressors out there that will condense it to 1 line.

    http://www.csscompressor.com/
    http://javascriptcompressor.com/
    Last edited by Sammy12; 04-02-2012 at 01:40 AM.

  • #4
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Quote Originally Posted by Sammy12 View Post
    Yes/No. I don't know what kind of website you are building but for large websites, you are not supposed to be leaching from their servers. Having to contact their servers and bring it back will take longer, it's best to host images in your own directory. This includes google jquery, with the license included in the file, it can be bundled in your own file. The only exception is if you are extracting something that realistically belongs on their site, such as a video from youtube.
    What makes you say this? Why would it take longer to contact their servers, especially when their servers are almost certainly better built and have access to CDNs?

  • #5
    Regular Coder
    Join Date
    Oct 2010
    Posts
    157
    Thanks
    2
    Thanked 1 Time in 1 Post
    Quote Originally Posted by Apostropartheid View Post
    What makes you say this? Why would it take longer to contact their servers, especially when their servers are almost certainly better built and have access to CDNs?
    Are you saying that it's better to have images at picasa rather than my own hosting of hostgator?
    As I think they do have CDNs

  • #6
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts
    Quote Originally Posted by Apostropartheid View Post
    What makes you say this? Why would it take longer to contact their servers, especially when their servers are almost certainly better built and have access to CDNs?
    It is common courtesy to not leach off other servers. If everyone uses other websites to load images, the servers will take heavy damage, causing their website to load slower for everyone. If you have a cheap VPS, then load them in your own directory - the difference is negligible.

    If you have an image that belongs on Flickr (a good example is a youtube video), then you may remotely load it. If you are just using the website to host all your junk, then don't load it. Like I said, the answer is Yes/No, if your website has high traffic, don't slow down everyone (on a slow day, images will load slower than hosting them in your own directory) just because you want a slightly faster load time. Doing so shows a lack of courtesy to all users of hosting websites.

    Quote Originally Posted by cryoffalcon View Post
    Are you saying that it's better to have images at picasa rather than my own hosting of hostgator?
    As I think they do have CDNs
    If your worried about image load time:
    Image Optimizer
    Article on Sprites
    Sprite Generator

    If I'm not mistaken, if your image is found on a search engine, it will link to the image on flicker, not your website, so if your image belongs on flickr, then host it there.
    Last edited by Sammy12; 04-06-2012 at 09:44 AM.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •