Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-27-2012, 06:13 PM   PM User | #1
cryoffalcon
Regular Coder

 
Join Date: Oct 2010
Posts: 157
Thanks: 2
Thanked 1 Time in 1 Post
cryoffalcon is an unknown quantity at this point
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 01:57 PM..
cryoffalcon is offline   Reply With Quote
Old 04-01-2012, 06:07 PM   PM User | #2
cryoffalcon
Regular Coder

 
Join Date: Oct 2010
Posts: 157
Thanks: 2
Thanked 1 Time in 1 Post
cryoffalcon is an unknown quantity at this point
any reply would appreciated ^^
cryoffalcon is offline   Reply With Quote
Old 04-02-2012, 12:31 AM   PM User | #3
Sammy12
Registered User

 
Join Date: Jun 2011
Posts: 1,063
Thanks: 12
Thanked 241 Times in 240 Posts
Sammy12 is on a distinguished road
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 12:40 AM..
Sammy12 is offline   Reply With Quote
Old 04-02-2012, 11:59 PM   PM User | #4
Apostropartheid
The Apostate


 
Apostropartheid's Avatar
 
Join Date: Oct 2007
Posts: 3,215
Thanks: 16
Thanked 265 Times in 263 Posts
Apostropartheid is on a distinguished road
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?
__________________
Blog | Twitter
Useful links: W3C HTML Validator | W3C CSS Validator | HTML 5 Guide
CF: HTML & CSS Resources/Tutorials Thread | HTML & CSS Posting Rules and Guidelines
Remember: no link, no code, no help!
Apostropartheid is offline   Reply With Quote
Old 04-03-2012, 02:53 PM   PM User | #5
cryoffalcon
Regular Coder

 
Join Date: Oct 2010
Posts: 157
Thanks: 2
Thanked 1 Time in 1 Post
cryoffalcon is an unknown quantity at this point
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
cryoffalcon is offline   Reply With Quote
Old 04-06-2012, 08:26 AM   PM User | #6
Sammy12
Registered User

 
Join Date: Jun 2011
Posts: 1,063
Thanks: 12
Thanked 241 Times in 240 Posts
Sammy12 is on a distinguished road
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 08:44 AM..
Sammy12 is offline   Reply With Quote
Reply

Bookmarks

Tags
dns, http, requests, speed

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:57 PM.


Advertisement
Log in to turn off these ads.